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

Changing camera from frontal to back make camera buttons freeze

Open lincolnbf opened this issue 3 years ago • 1 comments

  • 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)

  1. Camera started in frontal mode with configuration:

ImagePicker.openCamera(imageOptions)

imageOptions = cropping: true, width: 480, height: 480, mediaType: 'photo', useFrontCamera: true, includeBase64: false,

  1. Click on change camera button

  2. 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

lincolnbf avatar May 23 '22 17:05 lincolnbf

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

marquina-abreu avatar Aug 03 '22 17:08 marquina-abreu