Docs fix: remove confusing typo

Summary:
Explain the **motivation** for making this change. What existing problem does the pull request solve?

Copy&paste from the example in the documentation will cause exception because there is no `AndroidPermissions` object. To avoid confusion we should refer to `PermissionsAndroid` instead since this is how this module is named in the API.
Closes https://github.com/facebook/react-native/pull/9956

Differential Revision: D3889080

Pulled By: hramos

fbshipit-source-id: 8f30d8f51ffee1321088a16a1b454ab163a746a2
This commit is contained in:
Stanisław Wasiutyński 2016-09-19 14:36:40 -07:00 committed by Facebook Github Bot 4
parent 7b2080e118
commit 74c32e2609
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ type Rationale = {
* ```
* async function requestCameraPermission() {
* try {
* const granted = await AndroidPermissions.requestPermission(
* AndroidPermissions.PERMISSIONS.CAMERA,
* const granted = await PermissionsAndroid.requestPermission(
* PermissionsAndroid.PERMISSIONS.CAMERA,
* {
* 'title': 'Cool Photo App Camera Permission',
* 'message': 'Cool Photo App needs access to your camera ' +