mirror of
https://github.com/tooot-app/app
synced 2025-02-18 04:40:57 +01:00
Fixed #117
This commit is contained in:
parent
fc8fdec12f
commit
b13ae5dafe
@ -109,7 +109,10 @@ const mediaSelector = async ({
|
|||||||
includeExif: false,
|
includeExif: false,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
minFiles: 1,
|
minFiles: 1,
|
||||||
maxFiles: _maximum
|
maxFiles: _maximum,
|
||||||
|
loadingLabelText: '',
|
||||||
|
compressImageMaxWidth: 4096,
|
||||||
|
compressImageMaxHeight: 4096
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
|
|
||||||
if (!images) {
|
if (!images) {
|
||||||
@ -125,7 +128,10 @@ const mediaSelector = async ({
|
|||||||
mediaType: 'photo',
|
mediaType: 'photo',
|
||||||
path: image.path,
|
path: image.path,
|
||||||
width: resize.width,
|
width: resize.width,
|
||||||
height: resize.height
|
height: resize.height,
|
||||||
|
cropperChooseText: i18next.t('common:buttons.apply'),
|
||||||
|
cropperCancelText: i18next.t('common:buttons.cancel'),
|
||||||
|
hideBottomControls: true
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
croppedImage && croppedImages.push(croppedImage)
|
croppedImage && croppedImages.push(croppedImage)
|
||||||
}
|
}
|
||||||
@ -135,7 +141,8 @@ const mediaSelector = async ({
|
|||||||
const selectVideo = async () => {
|
const selectVideo = async () => {
|
||||||
const video = await ImagePicker.openPicker({
|
const video = await ImagePicker.openPicker({
|
||||||
mediaType: 'video',
|
mediaType: 'video',
|
||||||
includeExif: false
|
includeExif: false,
|
||||||
|
loadingLabelText: ''
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
|
|
||||||
if (video) {
|
if (video) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user