diff options
author | Ansh <anshnanda10@gmail.com> | 2023-04-12 18:50:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-12 18:50:49 -0700 |
commit | f2f73e414ab275d4233734b51c0773456e8ca29e (patch) | |
tree | 5c9780181b3cbbc3b8696a4fa38c516a7bf317b6 /src/view/com | |
parent | ec0510d1d9af2345b13c6f91b6f856f079828b85 (diff) | |
download | voidsky-f2f73e414ab275d4233734b51c0773456e8ca29e.tar.zst |
temporary android fix for image picker issue (#466)
Diffstat (limited to 'src/view/com')
-rw-r--r-- | src/view/com/composer/photos/SelectPhotoBtn.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/composer/photos/SelectPhotoBtn.tsx b/src/view/com/composer/photos/SelectPhotoBtn.tsx index 888118a85..c0808b85c 100644 --- a/src/view/com/composer/photos/SelectPhotoBtn.tsx +++ b/src/view/com/composer/photos/SelectPhotoBtn.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {TouchableOpacity} from 'react-native' +import {Platform, TouchableOpacity} from 'react-native' import { FontAwesomeIcon, FontAwesomeIconStyle, @@ -57,6 +57,10 @@ export function SelectPhotoBtn({ }) const result = [] for (const image of items) { + if (Platform.OS === 'android') { + result.push(image.path) + continue + } result.push( await cropAndCompressFlow( store, |