temporary android fix for image picker issue (#466)

This commit is contained in:
Ansh 2023-04-12 18:50:49 -07:00 committed by GitHub
parent ec0510d1d9
commit f2f73e414a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -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,