Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

temporary android fix for image picker issue (#466)

authored by

Ansh and committed by
GitHub
f2f73e41 ec0510d1

+9 -3
+4 -2
src/lib/media/picker.tsx
··· 32 32 mediaType, 33 33 multiple: opts.multiple, 34 34 maxFiles: opts.maxFiles, 35 + forceJpg: true, // ios only 36 + compressImageQuality: 0.8, 35 37 }) 36 38 const toMedia = (item: ImageOrVideo) => ({ 37 39 mediaType, ··· 60 62 cropperCircleOverlay: opts.cropperCircleOverlay, 61 63 cropping: true, 62 64 forceJpg: true, // ios only 63 - compressImageQuality: 1.0, 65 + compressImageQuality: 0.8, 64 66 }) 65 67 return { 66 68 mediaType, ··· 85 87 freeStyleCropEnabled: opts.freeStyleCropEnabled, 86 88 cropperCircleOverlay: opts.cropperCircleOverlay, 87 89 forceJpg: true, // ios only 88 - compressImageQuality: 1.0, 90 + compressImageQuality: 0.8, 89 91 }) 90 92 return { 91 93 mediaType,
+5 -1
src/view/com/composer/photos/SelectPhotoBtn.tsx
··· 1 1 import React from 'react' 2 - import {TouchableOpacity} from 'react-native' 2 + import {Platform, TouchableOpacity} from 'react-native' 3 3 import { 4 4 FontAwesomeIcon, 5 5 FontAwesomeIconStyle, ··· 57 57 }) 58 58 const result = [] 59 59 for (const image of items) { 60 + if (Platform.OS === 'android') { 61 + result.push(image.path) 62 + continue 63 + } 60 64 result.push( 61 65 await cropAndCompressFlow( 62 66 store,