react-native-maps 1.21.0-alpha.60 → 1.21.0-alpha.61
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
CHANGED
|
@@ -101,9 +101,9 @@ repositories {
|
|
|
101
101
|
|
|
102
102
|
dependencies {
|
|
103
103
|
implementation 'com.facebook.react:react-native:+'
|
|
104
|
-
implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '18.
|
|
105
|
-
implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '18.
|
|
104
|
+
implementation "com.google.android.gms:play-services-base:${safeExtGet('playServicesVersion', '18.5.0')}"
|
|
105
|
+
implementation "com.google.android.gms:play-services-maps:${safeExtGet('playServicesVersion', '18.5.0')}"
|
|
106
106
|
implementation "com.google.android.gms:play-services-location:21.0.1"
|
|
107
|
-
implementation 'com.google.maps.android:android-maps-utils:3.
|
|
107
|
+
implementation 'com.google.maps.android:android-maps-utils:3.10.0'
|
|
108
108
|
implementation "androidx.work:work-runtime:2.7.1"
|
|
109
109
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
@@ -13,7 +13,6 @@ import org.json.JSONArray;
|
|
|
13
13
|
import org.json.JSONException;
|
|
14
14
|
import org.json.JSONObject;
|
|
15
15
|
|
|
16
|
-
import com.facebook.react.bridge.Arguments;
|
|
17
16
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
17
|
import com.facebook.react.bridge.ReadableMap;
|
|
19
18
|
import com.facebook.react.bridge.WritableArray;
|
|
@@ -23,7 +22,6 @@ import com.facebook.react.uimanager.LayoutShadowNode;
|
|
|
23
22
|
import com.facebook.react.uimanager.ReactStylesDiffMap;
|
|
24
23
|
import com.facebook.react.uimanager.StateWrapper;
|
|
25
24
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
26
|
-
import com.facebook.react.uimanager.UIManagerHelper;
|
|
27
25
|
import com.facebook.react.uimanager.ViewGroupManager;
|
|
28
26
|
import com.facebook.react.uimanager.ViewManagerDelegate;
|
|
29
27
|
import com.facebook.react.viewmanagers.RNMapsMapViewManagerInterface;
|
|
@@ -34,6 +32,7 @@ import com.google.android.gms.maps.MapsInitializer;
|
|
|
34
32
|
import com.google.android.gms.maps.model.CameraPosition;
|
|
35
33
|
import com.google.android.gms.maps.model.LatLng;
|
|
36
34
|
import com.google.android.gms.maps.model.LatLngBounds;
|
|
35
|
+
import com.google.android.gms.maps.model.MapColorScheme;
|
|
37
36
|
import com.rnmaps.maps.MapView;
|
|
38
37
|
import com.rnmaps.maps.SizeReportingShadowNode;
|
|
39
38
|
|
|
@@ -105,6 +104,16 @@ public class MapViewManager extends ViewGroupManager<MapView> implements RNMapsM
|
|
|
105
104
|
options.maxZoomPreference(initialProps.getInt("maxZoom", 0));
|
|
106
105
|
}
|
|
107
106
|
}
|
|
107
|
+
if (initialProps.hasKey("userInterfaceStyle")){
|
|
108
|
+
String style = initialProps.getString("userInterfaceStyle");
|
|
109
|
+
if ("system".equals(style)) {
|
|
110
|
+
options.mapColorScheme(MapColorScheme.FOLLOW_SYSTEM);
|
|
111
|
+
} else if ("light".equals(style)){
|
|
112
|
+
options.mapColorScheme(MapColorScheme.LIGHT);
|
|
113
|
+
} else if ("dark".equals(style)){
|
|
114
|
+
options.mapColorScheme(MapColorScheme.DARK);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
108
117
|
if (initialProps.hasKey("pitchEnabled")) {
|
|
109
118
|
options.tiltGesturesEnabled(initialProps.getBoolean("pitchEnabled", true));
|
|
110
119
|
}
|
|
@@ -426,7 +435,7 @@ public class MapViewManager extends ViewGroupManager<MapView> implements RNMapsM
|
|
|
426
435
|
|
|
427
436
|
@Override
|
|
428
437
|
public void setUserInterfaceStyle(MapView view, @Nullable String value) {
|
|
429
|
-
//
|
|
438
|
+
// do nothing (initialProp)
|
|
430
439
|
}
|
|
431
440
|
|
|
432
441
|
@Override
|
package/lib/MapView.d.ts
CHANGED
|
@@ -493,7 +493,7 @@ export type MapViewProps = ViewProps & {
|
|
|
493
493
|
*
|
|
494
494
|
* @default System setting
|
|
495
495
|
* @platform iOS: Apple Maps only (iOS >= 13.0)
|
|
496
|
-
* @platform Android:
|
|
496
|
+
* @platform Android: Supported
|
|
497
497
|
*/
|
|
498
498
|
userInterfaceStyle?: 'light' | 'dark';
|
|
499
499
|
/**
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.21.0-alpha.
|
|
8
|
+
"version": "1.21.0-alpha.61",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|