Skip to content

Commit

Permalink
Update documentation for PermissionsAndroid
Browse files Browse the repository at this point in the history
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 #15505

Differential Revision: D5643004

Pulled By: TheSavior

fbshipit-source-id: 5ed81fd0120270da9ab180dd3f1cb569544e0520
  • Loading branch information
conanak99 authored and facebook-github-bot committed Aug 16, 2017
1 parent da9e51c commit 9c2a5cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/PermissionsAndroid/PermissionsAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9c2a5cd

Please sign in to comment.