In daily development, it is often necessary to obtain a permission for the application such as viewing contacts/opening the camera, etc.
1:ios iOS Rights Management in Info.plist settings info.plist is mainly to manage some of the app's information files, such as version AH permissions, etc.
This is mainly to set the application's HTTP access rights
2:android Android Permissions in Rn has permissionsandroid this API, the permissions are mainly set in the Androidmainfest.mxl file to register,
This API is mainly divided into 2 steps, the first step is to detect whether the permissions have already been, if not to apply for permission
This return is a promise.
No, go to the request:
Preissionsandroid.request (permission name { "title": "XXXX", "message": "XXX"})
This return is also a promise
And then do the other things.
Issues related to iOS and Android permissions in Rn