···11-import RNFetchBlob from 'rn-fetch-blob'
22-import ImageResizer from '@bam.tech/react-native-image-resizer'
31import {Image as RNImage, Share as RNShare} from 'react-native'
44-import {Image} from 'react-native-image-crop-picker'
52import * as RNFS from 'react-native-fs'
33+import {Image} from 'react-native-image-crop-picker'
64import uuid from 'react-native-uuid'
55+import * as MediaLibrary from 'expo-media-library'
76import * as Sharing from 'expo-sharing'
88-import * as MediaLibrary from 'expo-media-library'
77+import ImageResizer from '@bam.tech/react-native-image-resizer'
88+import RNFetchBlob from 'rn-fetch-blob'
99+1010+import {isAndroid, isIOS} from 'platform/detection'
911import {Dimensions} from './types'
1010-import {isAndroid, isIOS} from 'platform/detection'
11121213export async function compressIfNeeded(
1314 img: Image,
···6263 const to1 = setTimeout(() => downloadResPromise.cancel(), opts.timeout)
6364 downloadRes = await downloadResPromise
6465 clearTimeout(to1)
6666+6767+ const status = downloadRes.info().status
6868+ if (status !== 200) {
6969+ return
7070+ }
65716672 let localUri = downloadRes.path()
6773 if (!localUri.startsWith('file://')) {