IOS 11 Permission to access the camera?

Develop on React Native.
To access the list of photos using CameraRoll in info.plist add:
<key>NSPhotoLibraryAddUsageDescription</key>
<string>We need access to your photo library so that we can write photos</string>


For my entry:
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) camera use</string>


You need to take a picture and send it to the server.
When you try to take a picture in XCode throws the error:
libsystem_kernel.dylib`__abort_with_payload

Solves the problem:
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Write Photo</string>


But then can't read from the directory with the photo - gives an error (no permissions to read).

If set at the same time NSCameraUsageDescription and NSPhotoLibraryAddUsageDescription the app crashes when you first try to take a picture and send. In subsequent runs it works.

Who faced, prompt please.
June 10th 19 at 15:25
1 answer
June 10th 19 at 15:27
Judging by the error you do not have enough rights, it is necessary to look the code that checks them

Find more questions by tags Mobile developmentiOSReact