react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Crash on openCamera in iOS with 'Attempted to change to mode Portrait' error

Open emanu7478 opened this issue 1 year ago • 3 comments

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

  1. Call the openCamera function using react-native-image-crop-picker on iOS.
  2. Observe the loader and app crash.
  3. 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

Screenshot 2024-02-26 at 5 35 45 PM

emanu7478 avatar Feb 26 '24 12:02 emanu7478

@emanu7478 - Did you ever find a solution to this issue? I'm currently experiencing the same thing.

adam-padden avatar Mar 18 '24 19:03 adam-padden

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); }

urvashipatidar76 avatar Apr 16 '24 13:04 urvashipatidar76

The same problem

s-mikulich avatar Aug 09 '24 13:08 s-mikulich