Commit 309f8333 by Tonk

.

parent 46d40f16
import React from 'react';
import { View, Row, Icon, Text } from 'native-base';
import { View, Icon, Text } from 'native-base';
import { Image, StyleSheet, Platform } from 'react-native';
import { BaseButton, TouchableOpacity } from 'react-native-gesture-handler';
import { color, theme } from '../constants/Styles';
......@@ -41,9 +41,11 @@ const MeterCard = ({ item, onPressEachCard }) => {
{renderContent()}
</BaseButton>
) : (
<TouchableOpacity onPress={onPressEachCard} style={styles.cardContainer}>
{renderContent()}
</TouchableOpacity>
<View style={styles.cardShadow}>
<TouchableOpacity onPress={onPressEachCard} style={styles.cardContainer}>
{renderContent()}
</TouchableOpacity>
</View>
);
};
......@@ -103,4 +105,14 @@ const styles = StyleSheet.create({
backgroundColor: '#fff',
overflow: 'hidden',
},
cardShadow: {
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 3.84,
elevation: 5,
},
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment