- SDK Version: 44
- Platforms(Android/iOS/web/all): iOS
- Workflow: Managed
- Module: expo-image-picker
We are using expo-image-picker. When we are trying to upload a HEIC image file from iOS device, the app is crashing.
const result = await ImagePicker.launchImageLibraryAsync({
mediaTypes: ImagePicker.MediaTypeOptions.Images,
aspect: [1, 1],
allowsEditing: true,
quality: 1,
presentationStyle: 0,
});
Tried to console log the result but it returns nothing in case of HEIC image.
Environment
expo-env-info 1.0.2 environment info:
System:
OS: macOS 11.5.2
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.4 - /usr/local/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 6.14.14 - /usr/local/bin/npm
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
npmPackages:
expo: ^44.0.0 => 44.0.0
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
npmGlobalPackages:
expo-cli: 5.1.2
Expo Workflow: managed
Reproducible demo
Try selecting a HEIC image and it’ll crash.
Created an issue also on Github #16483