mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Open source the Android Location module
Reviewed By: foghina Differential Revision: D2658581 fb-gh-sync-id: e95b21c5c7c06f3332d2a7c9fab8be9a2e6441cb
This commit is contained in:
committed by
facebook-github-bot-6
parent
99b4901f6b
commit
494930afb2
@@ -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 = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user