From 43927cc41bd355d2e32357372975d18bd4f41e07 Mon Sep 17 00:00:00 2001 From: Bartol Karuza Date: Sat, 2 Nov 2019 18:18:16 +0100 Subject: [PATCH] feat(tester): add geolocation example --- ios/Podfile.lock | 10 ++++++++-- ios/RNTester/Info.plist | 4 ++++ package.json | 1 + yarn.lock | 4 ++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 04031d2..0c9c1a3 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -58,6 +58,8 @@ PODS: - React-jsinspector (0.60.5) - react-native-cameraroll (1.2.1): - React + - react-native-geolocation (2.0.2): + - React - React-RCTActionSheet (0.60.5): - React-Core (= 0.60.5) - React-RCTAnimation (0.60.5): @@ -101,6 +103,7 @@ DEPENDENCIES: - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) - "react-native-cameraroll (from `../node_modules/@react-native-community/cameraroll`)" + - "react-native-geolocation (from `../node_modules/@react-native-community/geolocation`)" - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) @@ -117,7 +120,7 @@ DEPENDENCIES: - yoga (from `../node_modules/react-native/ReactCommon/yoga`) SPEC REPOS: - https://github.com/cocoapods/specs.git: + https://github.com/CocoaPods/Specs.git: - boost-for-react-native EXTERNAL SOURCES: @@ -143,6 +146,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/jsinspector" react-native-cameraroll: :path: "../node_modules/@react-native-community/cameraroll" + react-native-geolocation: + :path: "../node_modules/@react-native-community/geolocation" React-RCTActionSheet: :path: "../node_modules/react-native/Libraries/ActionSheetIOS" React-RCTAnimation: @@ -185,6 +190,7 @@ SPEC CHECKSUMS: React-jsiexecutor: 90ad2f9db09513fc763bc757fdc3c4ff8bde2a30 React-jsinspector: e08662d1bf5b129a3d556eb9ea343a3f40353ae4 react-native-cameraroll: 3e5e34d36d93548ae7770ee8ab7b2ae9e778f571 + react-native-geolocation: c956aeb136625c23e0dce0467664af2c437888c9 React-RCTActionSheet: b0f1ea83f4bf75fb966eae9bfc47b78c8d3efd90 React-RCTAnimation: 359ba1b5690b1e87cc173558a78e82d35919333e React-RCTBlob: 5e2b55f76e9a1c7ae52b826923502ddc3238df24 @@ -202,4 +208,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: bf8ae4d9366aba3056dc6c85820641631cefba54 -COCOAPODS: 1.7.5 +COCOAPODS: 1.8.3 diff --git a/ios/RNTester/Info.plist b/ios/RNTester/Info.plist index b724eef..3338ff5 100644 --- a/ios/RNTester/Info.plist +++ b/ios/RNTester/Info.plist @@ -6,6 +6,10 @@ This app wants to see your photos to test the CameraRollManager CFBundleDevelopmentRegion en + NSLocationWhenInUseUsageDescription + use location to test react native + NSLocationAlwaysAndWhenInUseUsageDescription + use location to test react native CFBundleDisplayName RNTester CFBundleExecutable diff --git a/package.json b/package.json index a9c2261..864a1be 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "@react-native-community/cameraroll": "react-native-community/react-native-cameraroll#master", + "@react-native-community/geolocation": "bartolkaruza/react-native-geolocation#feature/example-compatible-with-tester", "react": "16.8.6", "react-native": "0.60.5", "react-native-gesture-handler": "^1.4.1", diff --git a/yarn.lock b/yarn.lock index 734c0cb..92f1fe4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -928,6 +928,10 @@ eslint-plugin-react-native "3.6.0" prettier "1.16.4" +"@react-native-community/geolocation@bartolkaruza/react-native-geolocation#feature/example-compatible-with-tester": + version "2.0.2" + resolved "https://codeload.github.com/bartolkaruza/react-native-geolocation/tar.gz/e2adca9343e0c179158813e0778589b0ce341e96" + "@react-navigation/core@^3.5.1": version "3.5.1" resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-3.5.1.tgz#7a2339fca3496979305fb3a8ab88c2ca8d8c214d"