From 0a88fab702bc2e5bbf452b963493a5836545faa8 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Fri, 9 Sep 2016 14:35:21 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/geolocation.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/releases/next/docs/geolocation.html b/releases/next/docs/geolocation.html index 87c3736ff32..8ef10d28e7f 100644 --- a/releases/next/docs/geolocation.html +++ b/releases/next/docs/geolocation.html @@ -1,5 +1,6 @@ Geolocation

Geolocation #

The Geolocation API follows the web spec: -https://developer.mozilla.org/en-US/docs/Web/API/Geolocation

iOS #

You need to include the NSLocationWhenInUseUsageDescription key +https://developer.mozilla.org/en-US/docs/Web/API/Geolocation

As a browser polyfill, this API is available through the navigator.geolocation +global - you do not need to import it.

iOS #

You need to include the NSLocationWhenInUseUsageDescription key in Info.plist to enable geolocation. Geolocation is enabled by default when you create a project with react-native init.

Android #

To request access to location, you need to add the following line to your app's AndroidManifest.xml:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Methods #

static getCurrentPosition(geo_success, geo_error?, geo_options?) #

Invokes the success callback once with the latest location info. Supported