Fix uploading avatar

This commit is contained in:
Zhiyuan Zheng 2022-06-21 23:05:29 +02:00
parent 1ebf732679
commit 869524eb84
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"native": "220603", "native": "220603",
"major": 4, "major": 4,
"minor": 1, "minor": 1,
"patch": 4, "patch": 5,
"expo": "45.0.0" "expo": "45.0.0"
}, },
"description": "tooot app for Mastodon", "description": "tooot app for Mastodon",

View File

@ -150,7 +150,7 @@ const mediaSelector = async ({
for (const image of images) { for (const image of images) {
const croppedImage = await ImagePicker.openCropper({ const croppedImage = await ImagePicker.openCropper({
mediaType: 'photo', mediaType: 'photo',
path: image.path, path: image.sourceURL || image.path,
width: resize.width, width: resize.width,
height: resize.height, height: resize.height,
cropperChooseText: i18next.t('common:buttons.apply'), cropperChooseText: i18next.t('common:buttons.apply'),