@rnmapbox/maps 10.3.2-rc.0 → 10.3.2-rc.1

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.
@@ -127,7 +127,13 @@ class RNMBXMarkerView(context: Context?, private val mManager: RNMBXMarkerViewMa
127
127
  mMapView?.offscreenAnnotationViewContainer?.addView(view)
128
128
  mMapView?.offscreenAnnotationViewContainer?.removeView(view)
129
129
  }
130
-
130
+
131
+ if (view.width == 0 || view.height == 0) {
132
+ // Fixes https://github.com/rnmapbox/maps/issues/4206
133
+ // Wait for the next layout via onLayoutChange
134
+ return
135
+ }
136
+
131
137
  val options = getOptions()
132
138
 
133
139
  val content = view as? RNMBXMarkerViewContent;
@@ -217,4 +223,4 @@ class RNMBXMarkerView(context: Context?, private val mManager: RNMBXMarkerViewMa
217
223
  }
218
224
 
219
225
  // endregion
220
- }
226
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnmapbox/maps",
3
- "version": "10.3.2-rc.0",
3
+ "version": "10.3.2-rc.1",
4
4
  "description": "Community-supported, open-source React Native library for building maps using Mapbox native maps SDK for iOS and Android",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.native.d.ts",