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>
) : ( ) : (
<View style={styles.cardShadow}>
<TouchableOpacity onPress={onPressEachCard} style={styles.cardContainer}> <TouchableOpacity onPress={onPressEachCard} style={styles.cardContainer}>
{renderContent()} {renderContent()}
</TouchableOpacity> </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