Skip to content

Commit 6180041

Browse files
TikiTDOfacebook-github-bot
authored andcommitted
Reference PermissionsAndroid in Geolocation doc
Summary: Current Geolocation API docs do not mention using PermissionAndroid when working with API 23+. This updates the docs to reflect that requirement. This a documentation change, so no testing is required. Closes #14133 Differential Revision: D5767852 Pulled By: hramos fbshipit-source-id: 25af70db864a50cdc5e3765eccdeecd49c084d9a
1 parent 4e2c084 commit 6180041

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Libraries/Geolocation/Geolocation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ type GeoOptions = {
7676
* Android API >= 18 Positions will also contain a `mocked` boolean to indicate if position
7777
* was created from a mock provider.
7878
*
79+
* <p>
80+
* Android API >= 23 Requires an additional step to check for, and request
81+
* the ACCESS_FINE_LOCATION permission using
82+
* the <a href="https://facebook.github.io/react-native/docs/permissionsandroid.html" target="_blank">PermissionsAndroid API</a>.
83+
* Failure to do so may result in a hard crash.
84+
* </p>
7985
*/
8086
var Geolocation = {
8187

0 commit comments

Comments
 (0)