Commit 282810a4 by Giang Tran

fix bug

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