|
|
@ -32,7 +32,7 @@ const User = ({ user, mobile, theme, upload }) => { |
|
|
|
quality: 1, |
|
|
|
quality: 1, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
upload({file : result, name : 'file'}); |
|
|
|
upload({ file: result, name: "file" }); |
|
|
|
|
|
|
|
|
|
|
|
if (!result.cancelled) { |
|
|
|
if (!result.cancelled) { |
|
|
|
setImage(result.uri); |
|
|
|
setImage(result.uri); |
|
|
@ -55,7 +55,11 @@ const User = ({ user, mobile, theme, upload }) => { |
|
|
|
> |
|
|
|
> |
|
|
|
<View style={tw(`flex items-center flex-row-reverse`)}> |
|
|
|
<View style={tw(`flex items-center flex-row-reverse`)}> |
|
|
|
<Avatar |
|
|
|
<Avatar |
|
|
|
source={`https://dnvn.ir/api/v1/file/${user?.picFileId}` || image} |
|
|
|
source={ |
|
|
|
|
|
|
|
user?.picFileId |
|
|
|
|
|
|
|
? `https://dnvn.ir/api/v1/file/${user?.picFileId}` |
|
|
|
|
|
|
|
: null |
|
|
|
|
|
|
|
} |
|
|
|
size={mobile ? width / 5.5 : width / 7} |
|
|
|
size={mobile ? width / 5.5 : width / 7} |
|
|
|
action={() => pickImage()} |
|
|
|
action={() => pickImage()} |
|
|
|
/> |
|
|
|
/> |
|
|
|