Commit e81127ab by Giang Tran

update code

parent c86cbe97
module.exports = {
root: true,
extends: '@react-native-community',
};
......@@ -27,7 +27,7 @@ const Item = (props) => {
<Block flex={1} row>
<View style={styles.wrapDate}>
<Image
source={{uri: item.commoditiy.image_path}}
source={{uri: item.commoditiy?.image_path}}
style={styles.imgIcon}
/>
</View>
......
......@@ -25,7 +25,7 @@ const Item = (props) => {
<TouchableOpacity onPress={() => props.onPress(item)}>
<Block flex={1} row>
<View style={styles.wrapDate}>
<Image source={{uri: item.image_path}} style={styles.imgIcon} />
<Image source={{uri: item?.image_path}} style={styles.imgIcon} />
</View>
<Block padding={[0, 10]} flex={1}>
<View
......
......@@ -25,7 +25,7 @@ const Item = (props) => {
style={[styles.container, isEndItem && {marginBottom: HEIGHTXD(100)}]}>
<TouchableOpacity onPress={() => props.onPress(item)}>
<Block flex={1} row>
<Image source={{uri: item.image_path}} style={styles.imgIcon} />
<Image source={{uri: item?.image_path}} style={styles.imgIcon} />
<Block padding={[0, WIDTHXD(40)]} space={'between'} flex={1}>
<View
style={{
......
......@@ -12,7 +12,7 @@ const Item = (props) => {
<TouchableOpacity onPress={() => props.onPress(item)}>
<Block flex={1} row>
<View style={styles.wrapDate}>
<Image source={{uri: item.image_path}} style={styles.imgIcon} />
<Image source={{uri: item?.image_path}} style={styles.imgIcon} />
</View>
<Block padding={[0, 10]} flex={1}>
<View
......
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