Changing camera from frontal to back make camera buttons freeze
- react-native-image-crop-picker "v0.37.3"
- react-native v0.66.4
Android only
Expected behaviour
Changing camera from frontal to back should be working.
Actual behaviour
Changing camera from frontal to back makes UI freeze. Back to frontal the behaviour is normal, it changes. The real problem is when starts with frontal camera.
Steps to reproduce
Device tested: Motorola E40 Android 11 - other devices the behaviour is ok, only got this problem in this specific device. Camera installed on device is the default (factory reseted before testing)
- Camera started in frontal mode with configuration:
ImagePicker.openCamera(imageOptions)
imageOptions =
cropping: true, width: 480, height: 480, mediaType: 'photo', useFrontCamera: true, includeBase64: false,
-
Click on change camera button
-
Camera buttons freeze, but camera still displays frontal image (dont freeze, still updates)
Attachments
No crashes or log.
Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate
it happens to me that when I take a picture, the app restarts. it happens with the motorola g51 5G, with other devices it works fine, what could be happening?
react native version: 0.65.1 Version of react-native-image-crop-picker: 0.37.3