App crashes on picking HEIC image

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): iOS
  3. Workflow: Managed
  4. 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.


  expo-env-info 1.0.2 environment info:
      OS: macOS 11.5.2
      Shell: 5.8 - /bin/zsh
      Node: 14.17.4 - /usr/local/bin/node
      Yarn: 1.22.11 - /usr/local/bin/yarn
      npm: 6.14.14 - /usr/local/bin/npm
      CocoaPods: 1.11.2 - /usr/local/bin/pod
      iOS SDK:
        Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
      Android Studio: 4.0 AI-193.6911.18.40.6626763
      Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
      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 
      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

Hey @germavinsmoke, thanks for bringing this to our attention. I was going to suggest creating a github issue but you’ve beaten me to it! We’ll focus our attention there rather than this post.


1 Like

Alright, thanks!

set the allowsEditing to false or just get rid of it. it will stop the crash but you can’t crop or edit an image.

Still crashing the app.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.