shijingsh / react-native-customized-image-picker

iOS/Android image picker with support for camera, video compression, multiple images and cropping
245 stars 59 forks source link

App stopped on opening camera #62

Closed saadrehman013 closed 5 years ago

saadrehman013 commented 5 years ago

I have been trying to open camera for image and video separately on android but the app crashes when I try to access the camera. Accessing the gallery is working fine. Still not touched that for iOS whose knows there would be similar surprises there.

Versions: Android: 28, react-native: 0.57.5, iOS: 12

Still, a lot of time has been wasted on this issue. Any help or workaround would be appreciated.

inkedscreenshot_1545811163_li

yogeshmoradiya121 commented 5 years ago

same issue i have faced right now Please provide solution

liukefu2050 commented 5 years ago

Is Camera Permission Rejected?

saadrehman013 commented 5 years ago

Is Camera Permission Rejected?

No, not at all. I have added the necessary permissions in the manifest.xml file. When the camera opens for the first time it asks for the permission as it should be doing. To be noted gallery is accessible but not the camera for both picture and video.

liukefu2050 commented 5 years ago

Can you provide some stack information? I didn't find it when I ran example. You can try it.

saadrehman013 commented 5 years ago

Android: 28, Gradle: 3.2.1, react-native: 0.57.5, iOS: 12

liukefu2050 commented 5 years ago

I can't reproduce this bug. The exmple uses the same configuration. see https://github.com/mg365/react-native-customized-image-picker/tree/master/example, It's better to provide stack info in Android studio.

imadarif commented 5 years ago

same error below is the stack info

    buildToolsVersion = "27.0.3"
    minSdkVersion = 26
    compileSdkVersion = 27
    targetSdkVersion = 26
    supportLibVersion = "27.1.1"

screen shot 2019-01-04 at 12 50 55 pm

liukefu2050 commented 5 years ago

The build Tools Version recommended by lib is'28.0.3' buildToolsVersion = "28.0.3" supportLibVersion = "28.0.0"

prasad456 commented 4 years ago

@liukefu2050 My build tools as recommend as above, still app crashes while opening camera

prasad456 commented 4 years ago

@liukefu2050 Issue Fixed, as Library ask for Read Storage and Camera. Crashes for no permissions for WRITE Storage