react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Crash on openCamera in iOS with 'Attempted to change to mode Portrait' error
Version
- react-native-image-crop-picker v0.40.3
- react-native v0.71.6
Platform
- iOS
Expected behaviour
The openCamera function should successfully open the camera without any crashes or errors.
Actual behaviour
The app crashes when trying to open the camera, and an error related to the camera mode and device compatibility is shown.
Steps to reproduce
- Call the openCamera function using react-native-image-crop-picker on iOS.
- Observe the loader and app crash.
- Check Xcode logs for the error and it shows "Attempted to change to mode Portrait with an unsupported device (BackWideDual). Auto device for both positions unsupported, returning Auto device for same position anyway (BackAuto). "
Additional Information
- iOS device: iPhone 14
- iOS version: 17.3.1
Attachments
@emanu7478 - Did you ever find a solution to this issue? I'm currently experiencing the same thing.
use setTimeout before call the imagepicker, its working fine like this const takePhotoFromLibray = (imageData: any) => { setTimeout(() => { ImagePicker.openPicker({ cropping: true, }).then(image => { console.log(image) }); }, 500); }
The same problem