Image picker causes app crash

#1

App crashes after opening the image library and after the camera also.

I tried to use imagepicker like this:

let result = await ImagePicker.launchCameraAsync({
  allowsEditing: true,
  aspect: [4, 3],
  quality: 0.4,
  base64: false,
  exif: false,
})

if (!result.cancelled) {
  this.props.navigation.navigate("UploadImage", { image: result })
}

it works perfectly in android. But in IOS it opens the image library and close the library and crash. whats wrong with this?

#2

Hello! Can you send us the logs for the crash? https://docs.expo.io/versions/v18.0.0/guides/logging.html#view-logs-for-an-ios-simulator