From 74c32e2609d7d76cd5adcbd55cc57c96b100ef95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Wasiuty=C5=84ski?= Date: Mon, 19 Sep 2016 14:36:40 -0700 Subject: [PATCH] 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 --- Libraries/PermissionsAndroid/PermissionsAndroid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/PermissionsAndroid/PermissionsAndroid.js b/Libraries/PermissionsAndroid/PermissionsAndroid.js index c672b30d7..aaa1ea9cf 100644 --- a/Libraries/PermissionsAndroid/PermissionsAndroid.js +++ b/Libraries/PermissionsAndroid/PermissionsAndroid.js @@ -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 ' +