Commit 282810a4 by Giang Tran

fix bug

parent a791dda3
......@@ -104,10 +104,15 @@ const PickerImg = (props) => {
return (
<TouchableOpacity onPress={() => setModalVisible(true)}>
<View style={styles.containerImg}>
<Image
source={{uri: props.user.picture_url}}
style={styles.imgAvatar}
/>
{props.user.picture_url ? (
<Image
source={{uri: props.user.picture_url}}
style={styles.imgAvatar}
/>
) : (
<View style={styles.imgAvatar} />
)}
<View style={styles.iconPicker}>
<Image
style={{width: 20, height: 20}}
......@@ -115,6 +120,7 @@ const PickerImg = (props) => {
/>
</View>
</View>
<Modal
isVisible={isModalVisible}
style={{margin: 0, justifyContent: 'flex-end'}}
......
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