Open source the Android Location module

Reviewed By: foghina

Differential Revision: D2658581

fb-gh-sync-id: e95b21c5c7c06f3332d2a7c9fab8be9a2e6441cb
This commit is contained in:
Martin Konicek
2015-11-18 09:03:51 -08:00
committed by facebook-github-bot-6
parent 99b4901f6b
commit 494930afb2
4 changed files with 297 additions and 2 deletions

View File

@@ -29,12 +29,19 @@ type GeoOptions = {
}
/**
* 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
* in Info.plist to enable geolocation. Geolocation is enabled by default
* when you create a project with `react-native init`.
*
* Geolocation follows the MDN specification:
* https://developer.mozilla.org/en-US/docs/Web/API/Geolocation
* ### 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" />`
*/
var Geolocation = {