react-native-radar 3.8.9 → 3.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +2 -2
- package/ios/Cartfile.resolved +1 -1
- package/js/ui/map.jsx +9 -4
- package/package.json +1 -1
- package/react-native-radar.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -18,7 +18,7 @@ android {
|
|
|
18
18
|
minSdkVersion 16
|
|
19
19
|
targetSdkVersion 31
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName '3.8.
|
|
21
|
+
versionName '3.8.11'
|
|
22
22
|
}
|
|
23
23
|
lintOptions {
|
|
24
24
|
abortOnError false
|
|
@@ -45,5 +45,5 @@ repositories {
|
|
|
45
45
|
|
|
46
46
|
dependencies {
|
|
47
47
|
api 'com.facebook.react:react-native:+'
|
|
48
|
-
api 'io.radar:sdk:3.8.
|
|
48
|
+
api 'io.radar:sdk:3.8.11'
|
|
49
49
|
}
|
package/ios/Cartfile.resolved
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
github "radarlabs/radar-sdk-ios" "3.8.
|
|
1
|
+
github "radarlabs/radar-sdk-ios" "3.8.8"
|
package/js/ui/map.jsx
CHANGED
|
@@ -31,10 +31,15 @@ const RadarMap = ({ mapOptions, children }) => {
|
|
|
31
31
|
|
|
32
32
|
useEffect(() => {
|
|
33
33
|
Radar.getLocation().then((result) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
if (result?.location?.latitude && result?.location?.longitude) {
|
|
35
|
+
setUserLocation({
|
|
36
|
+
latitude: result.location.latitude,
|
|
37
|
+
longitude: result.location.longitude,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}).catch((err) => {
|
|
41
|
+
// eslint-disable-next-line no-console
|
|
42
|
+
console.warn(`Radar SDK: Failed to get location: ${err}`);
|
|
38
43
|
});
|
|
39
44
|
}, [mapOptions]);
|
|
40
45
|
|
package/package.json
CHANGED