react-native-maps 1.26.17 → 1.26.18

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.
@@ -780,13 +780,16 @@ public class MapView extends com.google.android.gms.maps.MapView implements Goog
780
780
  destroyed = true;
781
781
  savedMapState = null;
782
782
  savedFeatures = null;
783
-
784
- if (!paused) {
785
- onPause();
786
- paused = true;
783
+ try {
784
+ if (!paused) {
785
+ onPause();
786
+ paused = true;
787
+ }
788
+ onDestroy();
789
+ detachLifecycleObserver();
790
+ } catch (Exception exception){
791
+ Log.e("MapView", "exception with destroying", exception);
787
792
  }
788
- onDestroy();
789
- detachLifecycleObserver();
790
793
  }
791
794
 
792
795
  public void setInitialCameraSet(boolean initialCameraSet) {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "types": "dist/src/index.d.ts",
8
8
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
9
9
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
10
- "version": "1.26.17",
10
+ "version": "1.26.18",
11
11
  "license": "MIT",
12
12
  "scripts": {
13
13
  "lint": "eslint . --max-warnings 0",