Commit e81127ab by Giang Tran

update code

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