react-native-maps 1.21.0-alpha.131 → 1.21.0-alpha.133

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.
@@ -865,7 +865,7 @@ public void onCreate(LifecycleOwner owner) {
865
865
 
866
866
  public void setShowsUserLocation(boolean showUserLocation) {
867
867
  this.showUserLocation = showUserLocation; // hold onto this for lifecycle handling
868
- if (hasPermissions()) {
868
+ if (hasPermissions() && map != null) {
869
869
  map.setLocationSource(fusedLocationSource);
870
870
  //noinspection MissingPermission
871
871
  map.setMyLocationEnabled(showUserLocation);
@@ -0,0 +1 @@
1
+ #define HAVE_GOOGLE_MAPS 1
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "src/index.ts",
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.131",
8
+ "version": "1.21.0-alpha.133",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
package/src/MapView.tsx CHANGED
@@ -1128,6 +1128,7 @@ class MapView extends React.Component<MapViewProps, State> {
1128
1128
  onRegionChange,
1129
1129
  onRegionChangeComplete,
1130
1130
  onPress,
1131
+ onMapReady,
1131
1132
  minZoomLevel,
1132
1133
  maxZoomLevel,
1133
1134
  region,