Update documentation for PermissionsAndroid

Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html

Happy contributing!

-->
Current documentation: [https://facebook.github.io/react-native/docs/permissionsandroid.html](https://facebook.github.io/react-native/docs/permissionsandroid.html)

PermissionsAndroid must be imported for the example to work, otherwise the error "Reference Error: can't find variable PermissionsAndroid" will be shown.
https://stackoverflow.com/questions/42434124/why-permissionandroid-doesnt-work

None - Just documentation changes.
Closes https://github.com/facebook/react-native/pull/15505

Differential Revision: D5643004

Pulled By: TheSavior

fbshipit-source-id: 5ed81fd0120270da9ab180dd3f1cb569544e0520
This commit is contained in:
Phạm Huy Hoàng 2017-08-16 14:51:58 -07:00 committed by Facebook Github Bot
parent da9e51c92d
commit 9c2a5cdbc3
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
*
* ### Example
* ```
* import { PermissionsAndroid } from 'react-native';
*
* async function requestCameraPermission() {
* try {
* const granted = await PermissionsAndroid.request(