{"_id":"@react-native-community/geolocation","_rev":"352880","name":"@react-native-community/geolocation","description":"React Native Geolocation Module for iOS and Android","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"time":{"modified":"2021-07-13T08:08:44.000Z","created":"2019-04-02T22:41:13.461Z","2.0.2":"2019-08-18T18:52:31.228Z","1.4.2":"2019-05-22T20:18:15.608Z","1.4.1":"2019-05-20T19:32:54.266Z","1.4.0":"2019-05-09T14:31:52.745Z","1.3.0":"2019-04-23T14:49:33.408Z","1.2.0":"2019-04-18T16:11:33.068Z","1.1.0":"2019-04-04T19:09:18.480Z","1.0.0":"2019-04-03T17:31:00.987Z","1.0.0-rc.2":"2019-04-03T16:45:00.859Z","1.0.0-rc.1":"2019-04-02T22:41:13.461Z"},"users":{},"author":{"name":"React Native Community"},"versions":{"2.0.2":{"name":"@react-native-community/geolocation","version":"2.0.2","description":"React Native Geolocation Module for iOS and Android","react-native":"js/index.js","main":"lib/commonjs/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release","prepare":"bob build"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.5.5","@babel/runtime":"^7.5.5","@react-native-community/bob":"^0.6.1","@react-native-community/eslint-config":"^0.0.5","@semantic-release/git":"^7.0.16","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.2","babel-jest":"^24.9.0","babel-plugin-module-resolver":"^3.2.0","detox":"^14.0.2","eslint":"^5.16.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"3.0.1","flow-bin":"^0.92.0","jest":"^24.9.0","metro-react-native-babel-preset":"0.56.0","prettier":"^1.18.2","react":"16.8.3","react-native":"0.59.10","react-test-renderer":"16.8.3","semantic-release":"^15.13.21"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"dependencies":{},"@react-native-community/bob":{"source":"js","output":"lib","targets":[["commonjs",{"flow":true}],"module"]},"gitHead":"87546c90bd0e30dceb6deb6380ea39bf1b63a23a","_id":"@react-native-community/geolocation@2.0.2","_npmVersion":"6.5.0","_nodeVersion":"8.16.1","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"ba8b40f560ead8d014740d1cdea970b33f19312e","size":28461,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-2.0.2.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_2.0.2_1566154351085_0.28110006543672394"},"_hasShrinkwrap":false,"publish_time":1566154351228,"_cnpm_publish_time":1566154351228},"1.4.2":{"name":"@react-native-community/geolocation","version":"1.4.2","description":"React Native Geolocation Module for iOS and Android","react-native":"js/index.js","main":"lib/commonjs/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release","prepare":"bob build"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.3","@babel/runtime":"^7.4.3","@react-native-community/bob":"^0.3.4","@react-native-community/eslint-config":"^0.0.3","@semantic-release/git":"^7.0.8","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"5.16.0","flow-bin":"^0.86.0","jest":"^24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.16.4","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","semantic-release":"^15.13.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"dependencies":{},"@react-native-community/bob":{"source":"js","output":"lib","targets":[["commonjs",{"flow":true}],"module"]},"gitHead":"33bbe9904b65dc851c4a0fc6fe72bb9bc3f3b114","_id":"@react-native-community/geolocation@1.4.2","_npmVersion":"6.5.0","_nodeVersion":"8.16.0","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"7228c6d37c2f55017af9c49c2b9ad586d9bcb9f8","size":34971,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.4.2.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.4.2_1558556295376_0.5453393297890494"},"_hasShrinkwrap":false,"publish_time":1558556295608,"_cnpm_publish_time":1558556295608},"1.4.1":{"name":"@react-native-community/geolocation","version":"1.4.1","description":"React Native Geolocation Module for iOS and Android","react-native":"js/index.js","main":"lib/commonjs/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release","prepare":"bob build"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.3","@babel/runtime":"^7.4.3","@react-native-community/bob":"^0.3.4","@react-native-community/eslint-config":"^0.0.3","@semantic-release/git":"^7.0.8","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"5.16.0","flow-bin":"^0.86.0","jest":"^24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.16.4","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","semantic-release":"^15.13.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"dependencies":{},"@react-native-community/bob":{"source":"js","output":"lib","targets":[["commonjs",{"flow":true}],"module"]},"gitHead":"a6ecebe255b96c7613f365f625f117b66f01974a","_id":"@react-native-community/geolocation@1.4.1","_npmVersion":"6.5.0","_nodeVersion":"8.16.0","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"dfba8b0b8ccfbd925087c4ccc1be879f7e89ced8","size":34462,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.4.1.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.4.1_1558380774056_0.7147214320547859"},"_hasShrinkwrap":false,"publish_time":1558380774266,"_cnpm_publish_time":1558380774266},"1.4.0":{"name":"@react-native-community/geolocation","version":"1.4.0","description":"React Native Geolocation Module for iOS and Android","react-native":"js/index.js","main":"lib/commonjs/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release","prepare":"bob build"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.3","@babel/runtime":"^7.4.3","@react-native-community/bob":"^0.3.4","@react-native-community/eslint-config":"^0.0.3","@semantic-release/git":"^7.0.8","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"5.16.0","flow-bin":"^0.86.0","jest":"^24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.16.4","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","semantic-release":"^15.13.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"dependencies":{},"@react-native-community/bob":{"source":"js","output":"lib","targets":[["commonjs",{"flow":true}],"module"]},"gitHead":"a42d85dd396bec65338db5806542270efb27bfa2","_id":"@react-native-community/geolocation@1.4.0","_npmVersion":"6.5.0","_nodeVersion":"8.16.0","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"537259a8c94e2c27b91632f2d20645a754bb35d4","size":33952,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.4.0.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.4.0_1557412312621_0.3847178777979563"},"_hasShrinkwrap":false,"publish_time":1557412312745,"_cnpm_publish_time":1557412312745},"1.3.0":{"name":"@react-native-community/geolocation","version":"1.3.0","description":"React Native Geolocation Module for iOS and Android","main":"js/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.3","@babel/runtime":"^7.4.3","@react-native-community/eslint-config":"^0.0.3","@semantic-release/git":"^7.0.8","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"5.16.0","flow-bin":"^0.86.0","jest":"^24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.16.4","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","semantic-release":"^15.13.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"gitHead":"75a3a67b9eb7b95619aa20f23a86838d07c62fa0","_id":"@react-native-community/geolocation@1.3.0","_npmVersion":"6.5.0","_nodeVersion":"8.16.0","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"05cc0c0f60bf3584cbefe710ddb6afb1e1f3656b","size":19606,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.3.0.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.3.0_1556030973300_0.08217268563519253"},"_hasShrinkwrap":false,"publish_time":1556030973408,"_cnpm_publish_time":1556030973408},"1.2.0":{"name":"@react-native-community/geolocation","version":"1.2.0","description":"React Native Geolocation Module for iOS and Android","main":"js/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.3","@babel/runtime":"^7.4.3","@react-native-community/eslint-config":"^0.0.3","@semantic-release/git":"^7.0.8","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"5.16.0","flow-bin":"^0.86.0","jest":"^24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.16.4","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","semantic-release":"^15.13.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"gitHead":"69d7d77f92033770217dcb7351c94681fd0f557a","_id":"@react-native-community/geolocation@1.2.0","_npmVersion":"6.5.0","_nodeVersion":"8.15.1","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"5ce7c8d749a96bc3b6ba9b1da4d77fd79ca730e2","size":19610,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.2.0.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.2.0_1555603892889_0.8604660200645402"},"_hasShrinkwrap":false,"publish_time":1555603893068,"_cnpm_publish_time":1555603893068},"1.1.0":{"name":"@react-native-community/geolocation","version":"1.1.0","description":"React Native Geolocation Module for iOS and Android","main":"js/index.js","typings":"typings/index.d.ts","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/","build:e2e:android:debug":"detox build -c android.emu.debug","build:e2e:android:release":"detox build -c android.emu.release","test:e2e:android:debug":"detox test -c android.emu.debug","test:e2e:android:release":"detox test -c android.emu.release","build:e2e:ios:debug":"detox build -c ios.sim.debug","build:e2e:ios:release":"detox build -c ios.sim.release","test:e2e:ios:debug":"detox test -c ios.sim.debug","test:e2e:ios:release":"detox test -c ios.sim.release"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.3","@babel/runtime":"^7.4.3","@react-native-community/eslint-config":"^0.0.3","@semantic-release/git":"^7.0.8","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.7.0","babel-plugin-module-resolver":"^3.2.0","detox":"^12.1.2","eslint":"5.16.0","flow-bin":"^0.86.0","jest":"^24.7.0","metro-react-native-babel-preset":"0.51.1","prettier":"^1.16.4","react":"16.6.3","react-native":"0.58.4","react-test-renderer":"16.6.3","semantic-release":"^15.13.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"detox":{"test-runner":"jest","runner-config":"example/e2e/config.json","configurations":{"ios.sim.debug":{"binaryPath":"example/ios/build/Build/Products/Debug-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Debug -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"ios.sim.release":{"binaryPath":"example/ios/build/Build/Products/Release-iphonesimulator/GeolocationExample.app","build":"export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project example/ios/GeolocationExample.xcodeproj -destination 'platform=iOS Simulator,name=iPhone X' -scheme GeolocationExample -parallelizeTargets -configuration Release -derivedDataPath example/ios/build  -UseModernBuildSystem=YES | xcpretty -k","type":"ios.simulator","name":"iPhone X"},"android.emu.debug":{"binaryPath":"example/android/app/build/outputs/apk/debug/app-debug.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd","type":"android.emulator","name":"TestingAVD"},"android.emu.release":{"binaryPath":"example/android/app/build/outputs/apk/release/app-release.apk","build":"export RCT_NO_LAUNCH_PACKAGER=true && pushd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd","type":"android.emulator","name":"TestingAVD"}},"specs":""},"gitHead":"b77d3e1a7998bee6934874ad83ea0cca06d8faa0","_id":"@react-native-community/geolocation@1.1.0","_npmVersion":"6.5.0","_nodeVersion":"8.15.1","_npmUser":{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"},"dist":{"shasum":"98dccfb3f6522754c49ca98f581e158775f4237d","size":19248,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.1.0.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.1.0_1554404958185_0.9667652920185497"},"_hasShrinkwrap":false,"publish_time":1554404958480,"_cnpm_publish_time":1554404958480},"1.0.0":{"name":"@react-native-community/geolocation","version":"1.0.0","description":"React Native Geolocation Module for iOS and Android","main":"js/index.js","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.0","@babel/runtime":"^7.4.2","@react-native-community/eslint-config":"^0.0.3","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.5.0","babel-plugin-module-resolver":"^3.2.0","eslint":"5.15.3","flow-bin":"^0.95.1","jest":"^24.5.0","metro-react-native-babel-preset":"^0.53.1","prettier":"^1.16.4","react-native":"0.59.2","react-test-renderer":"16.8.3","react":"16.8.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"gitHead":"4b31b2d89b6f33c95b9ca1312e576bb5708666b3","_id":"@react-native-community/geolocation@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"mattoakes","email":"hello@mattoakes.net"},"dist":{"shasum":"336517d617276818874b9aaae4ce888707dae71b","size":18088,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.0.0.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.0.0_1554312660728_0.2658584067181413"},"_hasShrinkwrap":false,"publish_time":1554312660987,"_cnpm_publish_time":1554312660987},"1.0.0-rc.2":{"name":"@react-native-community/geolocation","version":"1.0.0-rc.2","description":"React Native Geolocation Module for iOS and Android","main":"js/index.js","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.0","@babel/runtime":"^7.4.2","@react-native-community/eslint-config":"^0.0.3","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.5.0","babel-plugin-module-resolver":"^3.2.0","eslint":"5.15.3","flow-bin":"^0.95.1","jest":"^24.5.0","metro-react-native-babel-preset":"^0.53.1","prettier":"^1.16.4","react-native":"0.59.2","react-test-renderer":"16.8.3","react":"16.8.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"readmeFilename":"README.md","gitHead":"50323fe54617c37826622afbcf032810a6d4ad92","_id":"@react-native-community/geolocation@1.0.0-rc.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"mattoakes","email":"hello@mattoakes.net"},"dist":{"shasum":"2fdbb279b7b137a2dc5d3cd34520c80e1d139f5a","size":18091,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.0.0-rc.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.0.0-rc.2.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.0.0-rc.2_1554309900710_0.5054894219095105"},"_hasShrinkwrap":false,"publish_time":1554309900859,"_cnpm_publish_time":1554309900859},"1.0.0-rc.1":{"name":"@react-native-community/geolocation","version":"1.0.0-rc.1","description":"React Native Geolocation Module for iOS and Android","main":"js/index.js","author":{"name":"React Native Community"},"contributors":[{"name":"Janic Duplessis","email":"janic@th3rdwave.coffee"},{"name":"Michal Chudziak","email":"michal.chudziak@gmail.com"},{"name":"Matt Oakes","email":"hello@mattoakes.net"}],"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT","scripts":{"start":"react-native start","test":"yarn validate:eslint && yarn validate:flow && yarn test:jest","validate:eslint":"eslint 'js/**/*.js' 'example/**/*.js'","validate:flow":"flow check","test:jest":"jest js/"},"keywords":["react-native","geolocation","location"],"peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@babel/core":"^7.4.0","@babel/runtime":"^7.4.2","@react-native-community/eslint-config":"^0.0.3","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^24.5.0","babel-plugin-module-resolver":"^3.2.0","eslint":"5.15.3","flow-bin":"^0.95.1","jest":"^24.5.0","metro-react-native-babel-preset":"^0.53.1","prettier":"^1.16.4","react-native":"0.59.2","react-test-renderer":"16.8.3","react":"16.8.3"},"jest":{"preset":"react-native","setupFilesAfterEnv":["<rootDir>/jest.setup.js"]},"gitHead":"e4a7f96d12631e400deae6eced0f7df31af716ad","_id":"@react-native-community/geolocation@1.0.0-rc.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"mattoakes","email":"hello@mattoakes.net"},"dist":{"shasum":"1927bf19427b675ec44380ac09a68f6b3979ab31","size":17414,"noattachment":false,"key":"/@react-native-community/geolocation/-/@react-native-community/geolocation-1.0.0-rc.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-native-community/geolocation/download/@react-native-community/geolocation-1.0.0-rc.1.tgz"},"maintainers":[{"name":"react-native-community-bot","email":"malbranche.thibault+bot@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/geolocation_1.0.0-rc.1_1554244873228_0.5364172019423437"},"_hasShrinkwrap":false,"publish_time":1554244873461,"_cnpm_publish_time":1554244873461}},"readme":"# `@react-native-community/geolocation`\n[![CircleCI Status](https://img.shields.io/circleci/project/github/react-native-community/react-native-geolocation/master.svg)](https://circleci.com/gh/react-native-community/workflows/react-native-geolocation/tree/master) ![Supports Android, iOS and web](https://img.shields.io/badge/platforms-android%20%7C%20ios%20%7C%20web-lightgrey.svg) ![MIT License](https://img.shields.io/npm/l/@react-native-community/geolocation.svg)\n\nThe Geolocation API extends the [Geolocation web spec](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation).\n\nCurrently, on Android, this uses the [android.location API](https://developer.android.com/reference/android/location/package-summary). This API is not recommended by Google because it is less accurate and slower than the recommended [Google Location Services API](https://developer.android.com/training/location/). This is something that we want to change in the near future https://github.com/react-native-community/react-native-geolocation/issues/6.\n\nIn order to use the new [Google Location Services API](https://developer.android.com/training/location/) with React Native, please check out alternative libraries:\n\n- [react-native-geolocation-service](https://github.com/Agontuk/react-native-geolocation-service)\n- [react-native-location](https://github.com/timfpark/react-native-location)\n\n## Getting started\n\n`yarn add @react-native-community/geolocation`\n\nor\n\n`npm install @react-native-community/geolocation --save`\n\n### Mostly automatic installation\n\n`react-native link @react-native-community/geolocation`\n\n### Manual installation\n\n<details>\n<summary>Manually link the library on iOS</summary>\n\n### `Open project.xcodeproj in Xcode`\n\nDrag `RNCGeolocation.xcodeproj` to your project on Xcode (usually under the Libraries group on Xcode):\n\n![xcode-add](https://facebook.github.io/react-native/docs/assets/AddToLibraries.png)\n\n### Link `libRNCGeolocation.a` binary with libraries\n\nClick on your main project file (the one that represents the `.xcodeproj`) select `Build Phases` and drag the static library from the `Products` folder inside the Library you are importing to `Link Binary With Libraries` (or use the `+` sign and choose library from the list):\n\n![xcode-link](https://facebook.github.io/react-native/docs/assets/AddToBuildPhases.png)\n\n### Using CocoaPods\n\nUpdate your `Podfile`\n\n```\npod 'react-native-geolocation', path: '../node_modules/@react-native-community/geolocation'\n```\n\n</details>\n\n<details>\n<summary>Manually link the library on Android</summary>\n\n#### `android/settings.gradle`\n```groovy\ninclude ':react-native-community-geolocation'\nproject(':react-native-community-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/geolocation/android')\n```\n\n#### `android/app/build.gradle`\n```groovy\ndependencies {\n   ...\n   implementation project(':react-native-community-geolocation')\n}\n```\n\n#### `android/app/src/main/.../MainApplication.java`\nOn top, where imports are:\n\n```java\nimport com.reactnativecommunity.geolocation.GeolocationPackage;\n```\n\nAdd the `GeolocationPackage` class to your list of exported packages.\n\n```java\n@Override\nprotected List<ReactPackage> getPackages() {\n    return Arrays.asList(\n            new MainReactPackage(),\n            new GeolocationPackage()\n    );\n}\n```\n</details>\n\n## Configuration and Permissions\n\n<div class=\"banner-crna-ejected\">\n  <h3>Projects with Native Code Only</h3>\n  <p>\n    This section only applies to projects made with <code>react-native init</code>\n    or to those made with <code>expo init</code> or Create React Native App which have since ejected. For\n    more information about ejecting, please see\n    the <a href=\"https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md\" target=\"_blank\">guide</a> on\n    the Create React Native App repository.\n  </p>\n</div>\n\n### iOS\n\nYou need to include `NSLocationWhenInUseUsageDescription` and `NSLocationAlwaysAndWhenInUseUsageDescription` in `Info.plist` to enable geolocation when using the app. If your app supports iOS 10 and earlier, the `NSLocationAlwaysUsageDescription` key is also required. If these keys are not present in the `Info.plist`, authorization requests fail immediately and silently. Geolocation is enabled by default when you create a project with `react-native init`.\n\nIn order to enable geolocation in the background, you need to include the 'NSLocationAlwaysUsageDescription' key in Info.plist and add location as a background mode in the 'Capabilities' tab in Xcode.\n\n### Android\n\nTo request access to location, you need to add the following line to your app's `AndroidManifest.xml`:\n\n`<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />`\n\nAndroid API >= 18 Positions will also contain a `mocked` boolean to indicate if position was created from a mock provider.\n\n<p>\n  Android API >= 23 Requires an additional step to check for, and request\n  the ACCESS_FINE_LOCATION permission using\n  the <a href=\"https://facebook.github.io/react-native/docs/permissionsandroid.html\" target=\"_blank\">PermissionsAndroid API</a>.\n  Failure to do so may result in a hard crash.\n</p>\n\n## Migrating from the core `react-native` module\nThis module was created when the Geolocation was split out from the core of React Native. As a browser polyfill, this API was available through the `navigator.geolocation` global - you didn't need to import it. To migrate to this module you need to follow the installation instructions above and change following code:\n\n```javascript\nnavigator.geolocation.setRNConfiguration(config);\n```\n\nto:\n\n```javascript\nimport Geolocation from '@react-native-community/geolocation';\n\nGeolocation.setRNConfiguration(config);\n```\n\nIf you need to have geolocation API aligned with the browser (cross-platform apps), or want to support backward compatibility, please consider adding following lines at the root level, for example at the top of your App.js file (only for [react native](https://facebook.github.io/react-native/docs/platform-specific-code.html#native-specific-extensions-ie-sharing-code-with-nodejs-and-web)):\n\n```javascript\nnavigator.geolocation = require('@react-native-community/geolocation');\n```\n\n## Usage\n\n### Example\n\n```javascript\nimport Geolocation from '@react-native-community/geolocation';\n\nGeolocation.getCurrentPosition(info => console.log(info));\n```\n\nCheck out the [example project](example) for more examples.\n\n## Methods\n\n### Summary\n\n* [`setRNConfiguration`](#setrnconfiguration)\n* [`requestAuthorization`](#requestauthorization)\n* [`getCurrentPosition`](#getcurrentposition)\n* [`watchPosition`](#watchposition)\n* [`clearWatch`](#clearwatch)\n* [`stopObserving`](#stopobserving)\n\n---\n\n### Details\n\n#### `setRNConfiguration()`\n\n```javascript\ngeolocation.setRNConfiguration(config);\n```\n\nSets configuration options that will be used in all location requests.\n\n**Parameters:**\n\n| Name   | Type   | Required | Description |\n| ------ | ------ | -------- | ----------- |\n| config | object | Yes      | See below.  |\n\nSupported options:\n\n* `skipPermissionRequests` (boolean, iOS-only) - Defaults to `false`. If `true`, you must request permissions before using Geolocation APIs.\n* `authorizationLevel` (string, iOS-only) - Either `\"whenInUse\"`, `\"always\"`, or `\"auto\"`. Changes the whether the user will be asked to give \"always\" or \"when in use\" location services permission. Any other value or `auto` will use the default behaviour, where the permission level is based on the contents of your `Info.plist`.\n\n---\n\n#### `requestAuthorization()`\n\n```javascript\ngeolocation.requestAuthorization();\n```\n\nRequest suitable Location permission based on the key configured on pList. If NSLocationAlwaysUsageDescription is set, it will request Always authorization, although if NSLocationWhenInUseUsageDescription is set, it will request InUse authorization.\n\n---\n\n#### `getCurrentPosition()`\n\n```javascript\ngeolocation.getCurrentPosition(geo_success, [geo_error], [geo_options]);\n```\n\nInvokes the success callback once with the latest location info.\n\n**Parameters:**\n\n| Name        | Type     | Required | Description                               |\n| ----------- | -------- | -------- | ----------------------------------------- |\n| geo_success | function | Yes      | Invoked with latest location info.        |\n| geo_error   | function | No       | Invoked whenever an error is encountered. |\n| geo_options | object   | No       | See below.                                |\n\nSupported options:\n\n* `timeout` (ms) - Is a positive value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position. Defaults to INFINITY.\n* `maximumAge` (ms) - Is a positive value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return. If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position. If set to Infinity the device will always return a cached position regardless of its age. Defaults to INFINITY.\n* `enableHighAccuracy` (bool) - Is a boolean representing if to use GPS or not. If set to true, a GPS position will be requested. If set to false, a WIFI location will be requested.\n\n---\n\n#### `watchPosition()`\n\n```javascript\ngeolocation.watchPosition(success, [error], [options]);\n```\n\nInvokes the success callback whenever the location changes. Returns a `watchId` (number).\n\n**Parameters:**\n\n| Name    | Type     | Required | Description                               |\n| ------- | -------- | -------- | ----------------------------------------- |\n| success | function | Yes      | Invoked whenever the location changes.    |\n| error   | function | No       | Invoked whenever an error is encountered. |\n| options | object   | No       | See below.                                |\n\nSupported options:\n\n* `timeout` (ms) - Is a positive value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position. Defaults to INFINITY.\n* `maximumAge` (ms) - Is a positive value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return. If set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real current position. If set to Infinity the device will always return a cached position regardless of its age. Defaults to INFINITY.\n* `enableHighAccuracy` (bool) - Is a boolean representing if to use GPS or not. If set to true, a GPS position will be requested. If set to false, a WIFI location will be requested.\n* `distanceFilter` (m) - The minimum distance from the previous location to exceed before returning a new location. Set to 0 to not filter locations. Defaults to 100m.\n* `useSignificantChanges` (bool) - Uses the battery-efficient native significant changes APIs to return locations. Locations will only be returned when the device detects a significant distance has been breached. Defaults to FALSE.\n\n---\n\n#### `clearWatch()`\n\n```javascript\ngeolocation.clearWatch(watchID);\n```\n\n**Parameters:**\n\n| Name    | Type   | Required | Description                          |\n| ------- | ------ | -------- | ------------------------------------ |\n| watchID | number | Yes      | Id as returned by `watchPosition()`. |\n\n---\n\n#### `stopObserving()`\n\n```javascript\ngeolocation.stopObserving();\n```\n\nStops observing for device location changes. In addition, it removes all listeners previously registered.\n\nNotice that this method has only effect if the `geolocation.watchPosition(successCallback, errorCallback)` method was previously invoked.\n\n## Contributors\n\nThis module was extracted from `react-native` core. Please reffer to https://github.com/react-native-community/react-native-geolocation/graphs/contributors for the complete list of contributors.\n\n## License\nThe library is released under the MIT licence. For more information see `LICENSE`.\n","_attachments":{},"homepage":"https://github.com/react-native-community/react-native-geolocation#README.md","license":"MIT"}