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

'Required Permissions Missing' error when I call openCamera function

Open niranjanrajesh02 opened this issue 4 years ago • 3 comments

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.35.3
  • react-native v0.63.4

Platform

Tell us to which platform this issue is related

  • Android

Expected behaviour

The ImagePicker.openCamera function is called on a button press which should take me to the camera view and let me take a picture on my emulator.

Actual behaviour

When I call the ImagePicker.openCamera function, I get the 'Required Permissions Missing' as a warning on my React Native and nothing actually happens.

Steps to reproduce

Attachments

image image

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

niranjanrajesh02 avatar Feb 12 '21 16:02 niranjanrajesh02

Add <uses-permission android:name="android.permission.CAMERA" /> in AndroidManifest.xml file.

APukas avatar Mar 03 '21 08:03 APukas

Same error here, and the line was added in the AndroidManifest.xml file.

<uses-permission android:name="android.permission.CAMERA" />

amdrade avatar Jan 18 '24 14:01 amdrade

Solve update to 0.40.2

amdrade avatar Jan 18 '24 15:01 amdrade