about summary refs log tree commit diff
path: root/src/view
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-04-12 18:50:49 -0700
committerGitHub <noreply@github.com>2023-04-12 18:50:49 -0700
commitf2f73e414ab275d4233734b51c0773456e8ca29e (patch)
tree5c9780181b3cbbc3b8696a4fa38c516a7bf317b6 /src/view
parentec0510d1d9af2345b13c6f91b6f856f079828b85 (diff)
downloadvoidsky-f2f73e414ab275d4233734b51c0773456e8ca29e.tar.zst
temporary android fix for image picker issue (#466)
Diffstat (limited to 'src/view')
-rw-r--r--src/view/com/composer/photos/SelectPhotoBtn.tsx6
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,