Commit 309f8333 by Tonk

.

parent 46d40f16
import React from 'react'; 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 { Image, StyleSheet, Platform } from 'react-native';
import { BaseButton, TouchableOpacity } from 'react-native-gesture-handler'; import { BaseButton, TouchableOpacity } from 'react-native-gesture-handler';
import { color, theme } from '../constants/Styles'; import { color, theme } from '../constants/Styles';
...@@ -41,9 +41,11 @@ const MeterCard = ({ item, onPressEachCard }) => { ...@@ -41,9 +41,11 @@ const MeterCard = ({ item, onPressEachCard }) => {
{renderContent()} {renderContent()}
</BaseButton> </BaseButton>
) : ( ) : (
<TouchableOpacity onPress={onPressEachCard} style={styles.cardContainer}> <View style={styles.cardShadow}>
{renderContent()} <TouchableOpacity onPress={onPressEachCard} style={styles.cardContainer}>
</TouchableOpacity> {renderContent()}
</TouchableOpacity>
</View>
); );
}; };
...@@ -103,4 +105,14 @@ const styles = StyleSheet.create({ ...@@ -103,4 +105,14 @@ const styles = StyleSheet.create({
backgroundColor: '#fff', backgroundColor: '#fff',
overflow: 'hidden', 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