@rnmapbox/maps 10.3.0 → 10.3.2-rc.0

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.
Files changed (309) hide show
  1. package/android/src/main/java/com/rnmapbox/rnmbx/RNMBXPackage.kt +4 -0
  2. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerView.kt +8 -0
  3. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContent.kt +9 -0
  4. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewContentManager.kt +7 -1
  5. package/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXMarkerViewManager.kt +14 -0
  6. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +3 -0
  7. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt +6 -0
  8. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXVIewportManager.kt +6 -0
  9. package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImageManager.kt +6 -0
  10. package/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt +6 -0
  11. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt +6 -0
  12. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt +6 -0
  13. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +13 -0
  14. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt +6 -1
  15. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleFactory.kt +748 -0
  16. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleImportManager.kt +6 -0
  17. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXBackgroundLayerManager.kt +6 -0
  18. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXCircleLayerManager.kt +6 -0
  19. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillExtrusionLayerManager.kt +6 -0
  20. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXFillLayerManager.kt +6 -0
  21. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHeatmapLayerManager.kt +6 -0
  22. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXHillshadeLayerManager.kt +6 -0
  23. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXLineLayerManager.kt +6 -0
  24. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt +6 -0
  25. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXRasterLayerManager.kt +6 -0
  26. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSkyLayerManager.kt +6 -0
  27. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSymbolLayerManager.kt +6 -0
  28. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/light/RNMBXLightManager.kt +6 -0
  29. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/model/RNMBXModelsManager.kt +6 -0
  30. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/rain/RNMBXRain.kt +83 -0
  31. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/rain/RNMBXRainManager.kt +40 -0
  32. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/snow/RNMBXSnow.kt +66 -0
  33. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/snow/RNMBXSnowManager.kt +40 -0
  34. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXImageSourceManager.kt +6 -0
  35. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterDemSourceManager.kt +6 -0
  36. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSource.kt +1 -1
  37. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt +6 -0
  38. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSource.kt +8 -0
  39. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt +11 -0
  40. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt +6 -0
  41. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/terrain/RNMBXTerrainManager.kt +6 -0
  42. package/ios/RNMBX/RNMBXAtmosphereComponentView.mm +2 -1
  43. package/ios/RNMBX/RNMBXBackgroundLayerComponentView.mm +2 -1
  44. package/ios/RNMBX/RNMBXBridgeManager.h +8 -0
  45. package/ios/RNMBX/RNMBXBridgeManager.m +16 -0
  46. package/ios/RNMBX/RNMBXCamera.swift +5 -2
  47. package/ios/RNMBX/RNMBXCircleLayerComponentView.mm +2 -1
  48. package/ios/RNMBX/RNMBXFillExtrusionLayerComponentView.mm +2 -1
  49. package/ios/RNMBX/RNMBXFillLayerComponentView.mm +2 -1
  50. package/ios/RNMBX/RNMBXHeatmapLayerComponentView.mm +2 -1
  51. package/ios/RNMBX/RNMBXHillshadeLayerComponentView.mm +2 -1
  52. package/ios/RNMBX/RNMBXImageModule.h +1 -0
  53. package/ios/RNMBX/RNMBXImageModule.mm +15 -2
  54. package/ios/RNMBX/RNMBXImageQueue.swift +9 -1
  55. package/ios/RNMBX/RNMBXImages.swift +4 -0
  56. package/ios/RNMBX/RNMBXImagesComponentView.mm +2 -1
  57. package/ios/RNMBX/RNMBXLightComponentView.mm +2 -1
  58. package/ios/RNMBX/RNMBXLineLayerComponentView.mm +2 -1
  59. package/ios/RNMBX/RNMBXMapView.swift +16 -0
  60. package/ios/RNMBX/RNMBXMapViewComponentView.mm +10 -0
  61. package/ios/RNMBX/RNMBXModelLayerComponentView.mm +2 -1
  62. package/ios/RNMBX/RNMBXRain.swift +92 -0
  63. package/ios/RNMBX/RNMBXRainComponentView.h +14 -0
  64. package/ios/RNMBX/RNMBXRainComponentView.mm +80 -0
  65. package/ios/RNMBX/RNMBXRasterLayerComponentView.mm +2 -1
  66. package/ios/RNMBX/RNMBXRasterParticleLayerComponentView.mm +2 -1
  67. package/ios/RNMBX/RNMBXShapeSource.swift +5 -0
  68. package/ios/RNMBX/RNMBXShapeSourceComponentView.mm +1 -0
  69. package/ios/RNMBX/RNMBXSkyLayerComponentView.mm +2 -1
  70. package/ios/RNMBX/RNMBXSnow.swift +76 -0
  71. package/ios/RNMBX/RNMBXSnowComponentView.h +14 -0
  72. package/ios/RNMBX/RNMBXSnowComponentView.mm +80 -0
  73. package/ios/RNMBX/RNMBXStyle.swift +477 -9
  74. package/ios/RNMBX/RNMBXStyleValue.swift +7 -1
  75. package/ios/RNMBX/RNMBXSymbolLayerComponentView.mm +2 -1
  76. package/ios/RNMBX/RNMBXTerrainComponentView.mm +2 -1
  77. package/lib/commonjs/plugin/build/withMapbox.d.ts +1 -1
  78. package/lib/commonjs/plugin/install.md +2 -2
  79. package/lib/commonjs/plugin/src/withMapbox.ts +2 -2
  80. package/lib/module/Mapbox.native.js +2 -1
  81. package/lib/module/Mapbox.native.js.map +1 -1
  82. package/lib/module/components/AbstractLayer.js.map +1 -1
  83. package/lib/module/components/Annotation.js.map +1 -1
  84. package/lib/module/components/Callout.js.map +1 -1
  85. package/lib/module/components/Image.js.map +1 -1
  86. package/lib/module/components/Images.js.map +1 -1
  87. package/lib/module/components/MapView.js.map +1 -1
  88. package/lib/module/components/MarkerView.js +6 -2
  89. package/lib/module/components/MarkerView.js.map +1 -1
  90. package/lib/module/components/PointAnnotation.js +11 -4
  91. package/lib/module/components/PointAnnotation.js.map +1 -1
  92. package/lib/module/components/Rain.js +19 -0
  93. package/lib/module/components/Rain.js.map +1 -0
  94. package/lib/module/components/ShapeSource.js +1 -0
  95. package/lib/module/components/ShapeSource.js.map +1 -1
  96. package/lib/module/components/Snow.js +19 -0
  97. package/lib/module/components/Snow.js.map +1 -0
  98. package/lib/module/components/SymbolLayer.js.map +1 -1
  99. package/lib/module/components/UserLocation.js.map +1 -1
  100. package/lib/module/components/VectorSource.js.map +1 -1
  101. package/lib/module/specs/RNMBXCameraNativeComponent.ts +3 -3
  102. package/lib/module/specs/RNMBXCustomLocationProviderNativeComponent.ts +1 -1
  103. package/lib/module/specs/RNMBXImageSourceNativeComponent.ts +1 -1
  104. package/lib/module/specs/RNMBXMapViewNativeComponent.ts +5 -4
  105. package/lib/module/specs/RNMBXMarkerViewNativeComponent.ts +2 -2
  106. package/lib/module/specs/RNMBXModelLayerNativeComponent.ts +2 -2
  107. package/lib/module/specs/RNMBXModelsNativeComponent.ts +1 -1
  108. package/lib/module/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -1
  109. package/lib/module/specs/RNMBXRainNativeComponent.ts +13 -0
  110. package/lib/module/specs/RNMBXRasterArraySourceNativeComponent.ts +1 -1
  111. package/lib/module/specs/RNMBXRasterDemSourceNativeComponent.ts +1 -1
  112. package/lib/module/specs/RNMBXRasterSourceNativeComponent.ts +1 -1
  113. package/lib/module/specs/RNMBXShapeSourceNativeComponent.ts +4 -3
  114. package/lib/module/specs/RNMBXSnowNativeComponent.ts +13 -0
  115. package/lib/module/specs/RNMBXVectorSourceNativeComponent.ts +2 -2
  116. package/lib/module/utils/index.js.map +1 -1
  117. package/lib/module/utils/styleMap.js +26 -0
  118. package/lib/module/utils/styleMap.js.map +1 -1
  119. package/lib/module/web/components/Camera.js.map +1 -1
  120. package/lib/typescript/jest.config.d.ts +3 -3
  121. package/lib/typescript/jest.config.d.ts.map +1 -1
  122. package/lib/typescript/plugin/src/withMapbox.d.ts +1 -1
  123. package/lib/typescript/plugin/src/withMapbox.d.ts.map +1 -1
  124. package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts +1 -1
  125. package/lib/typescript/scripts/autogenHelpers/examplesJsonSchema.d.ts.map +1 -1
  126. package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts +71 -2
  127. package/lib/typescript/scripts/autogenHelpers/generateCodeWithEjs.d.mts.map +1 -1
  128. package/lib/typescript/scripts/autogenHelpers/globals.d.mts +1 -1
  129. package/lib/typescript/scripts/autogenHelpers/globals.d.mts.map +1 -1
  130. package/lib/typescript/src/Mapbox.native.d.ts +3 -1
  131. package/lib/typescript/src/Mapbox.native.d.ts.map +1 -1
  132. package/lib/typescript/src/components/AbstractLayer.d.ts +2 -2
  133. package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
  134. package/lib/typescript/src/components/AbstractSource.d.ts +1 -1
  135. package/lib/typescript/src/components/AbstractSource.d.ts.map +1 -1
  136. package/lib/typescript/src/components/Annotation.d.ts +4 -4
  137. package/lib/typescript/src/components/Annotation.d.ts.map +1 -1
  138. package/lib/typescript/src/components/Callout.d.ts +5 -5
  139. package/lib/typescript/src/components/Callout.d.ts.map +1 -1
  140. package/lib/typescript/src/components/Camera.d.ts +1 -1
  141. package/lib/typescript/src/components/Camera.d.ts.map +1 -1
  142. package/lib/typescript/src/components/CameraGestureObserver.d.ts +1 -1
  143. package/lib/typescript/src/components/CameraGestureObserver.d.ts.map +1 -1
  144. package/lib/typescript/src/components/CircleLayer.d.ts +1 -1
  145. package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
  146. package/lib/typescript/src/components/CustomLocationProvider.d.ts +1 -1
  147. package/lib/typescript/src/components/CustomLocationProvider.d.ts.map +1 -1
  148. package/lib/typescript/src/components/FillExtrusionLayer.d.ts +1 -1
  149. package/lib/typescript/src/components/FillExtrusionLayer.d.ts.map +1 -1
  150. package/lib/typescript/src/components/HeadingIndicator.d.ts +1 -1
  151. package/lib/typescript/src/components/HeadingIndicator.d.ts.map +1 -1
  152. package/lib/typescript/src/components/HillshadeLayer.d.ts +1 -1
  153. package/lib/typescript/src/components/HillshadeLayer.d.ts.map +1 -1
  154. package/lib/typescript/src/components/Image.d.ts +1 -1
  155. package/lib/typescript/src/components/Image.d.ts.map +1 -1
  156. package/lib/typescript/src/components/ImageSource.d.ts +1 -1
  157. package/lib/typescript/src/components/ImageSource.d.ts.map +1 -1
  158. package/lib/typescript/src/components/Images.d.ts +2 -2
  159. package/lib/typescript/src/components/Images.d.ts.map +1 -1
  160. package/lib/typescript/src/components/LineLayer.d.ts +1 -1
  161. package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
  162. package/lib/typescript/src/components/MapView.d.ts +5 -1
  163. package/lib/typescript/src/components/MapView.d.ts.map +1 -1
  164. package/lib/typescript/src/components/MarkerView.d.ts +1 -1
  165. package/lib/typescript/src/components/MarkerView.d.ts.map +1 -1
  166. package/lib/typescript/src/components/ModelLayer.d.ts +1 -1
  167. package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -1
  168. package/lib/typescript/src/components/NativeBridgeComponent.d.ts +1 -1
  169. package/lib/typescript/src/components/NativeBridgeComponent.d.ts.map +1 -1
  170. package/lib/typescript/src/components/PointAnnotation.d.ts +3 -3
  171. package/lib/typescript/src/components/PointAnnotation.d.ts.map +1 -1
  172. package/lib/typescript/src/components/Rain.d.ts +17 -0
  173. package/lib/typescript/src/components/Rain.d.ts.map +1 -0
  174. package/lib/typescript/src/components/RasterArraySource.d.ts +1 -1
  175. package/lib/typescript/src/components/RasterArraySource.d.ts.map +1 -1
  176. package/lib/typescript/src/components/RasterLayer.d.ts +1 -1
  177. package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
  178. package/lib/typescript/src/components/RasterParticleLayer.d.ts +1 -1
  179. package/lib/typescript/src/components/RasterParticleLayer.d.ts.map +1 -1
  180. package/lib/typescript/src/components/RasterSource.d.ts +1 -1
  181. package/lib/typescript/src/components/RasterSource.d.ts.map +1 -1
  182. package/lib/typescript/src/components/ShapeSource.d.ts +8 -3
  183. package/lib/typescript/src/components/ShapeSource.d.ts.map +1 -1
  184. package/lib/typescript/src/components/SkyLayer.d.ts +1 -1
  185. package/lib/typescript/src/components/SkyLayer.d.ts.map +1 -1
  186. package/lib/typescript/src/components/Snow.d.ts +8 -0
  187. package/lib/typescript/src/components/Snow.d.ts.map +1 -0
  188. package/lib/typescript/src/components/SymbolLayer.d.ts +1 -1
  189. package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
  190. package/lib/typescript/src/components/UserLocation.d.ts +1 -1
  191. package/lib/typescript/src/components/UserLocation.d.ts.map +1 -1
  192. package/lib/typescript/src/components/VectorSource.d.ts +2 -2
  193. package/lib/typescript/src/components/VectorSource.d.ts.map +1 -1
  194. package/lib/typescript/src/modules/location/locationManager.d.ts +1 -1
  195. package/lib/typescript/src/modules/location/locationManager.d.ts.map +1 -1
  196. package/lib/typescript/src/modules/offline/offlineManager.d.ts +1 -1
  197. package/lib/typescript/src/modules/offline/offlineManager.d.ts.map +1 -1
  198. package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts +1 -1
  199. package/lib/typescript/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.d.ts.map +1 -1
  200. package/lib/typescript/src/shapeAnimators/MovePointShapeAnimator.d.ts +2 -2
  201. package/lib/typescript/src/shapeAnimators/MovePointShapeAnimator.d.ts.map +1 -1
  202. package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts +1 -1
  203. package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts.map +1 -1
  204. package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts +1 -1
  205. package/lib/typescript/src/specs/RNMBXCustomLocationProviderNativeComponent.d.ts.map +1 -1
  206. package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts +1 -1
  207. package/lib/typescript/src/specs/RNMBXImageSourceNativeComponent.d.ts.map +1 -1
  208. package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts +2 -1
  209. package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -1
  210. package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts +2 -2
  211. package/lib/typescript/src/specs/RNMBXMarkerViewNativeComponent.d.ts.map +1 -1
  212. package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +2 -2
  213. package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -1
  214. package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts +1 -1
  215. package/lib/typescript/src/specs/RNMBXModelsNativeComponent.d.ts.map +1 -1
  216. package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts +1 -1
  217. package/lib/typescript/src/specs/RNMBXNativeUserLocationNativeComponent.d.ts.map +1 -1
  218. package/lib/typescript/src/specs/RNMBXRainNativeComponent.d.ts +8 -0
  219. package/lib/typescript/src/specs/RNMBXRainNativeComponent.d.ts.map +1 -0
  220. package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts +1 -1
  221. package/lib/typescript/src/specs/RNMBXRasterArraySourceNativeComponent.d.ts.map +1 -1
  222. package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts +1 -1
  223. package/lib/typescript/src/specs/RNMBXRasterDemSourceNativeComponent.d.ts.map +1 -1
  224. package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts +1 -1
  225. package/lib/typescript/src/specs/RNMBXRasterSourceNativeComponent.d.ts.map +1 -1
  226. package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts +2 -1
  227. package/lib/typescript/src/specs/RNMBXShapeSourceNativeComponent.d.ts.map +1 -1
  228. package/lib/typescript/src/specs/RNMBXSnowNativeComponent.d.ts +8 -0
  229. package/lib/typescript/src/specs/RNMBXSnowNativeComponent.d.ts.map +1 -0
  230. package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts +1 -1
  231. package/lib/typescript/src/specs/RNMBXVectorSourceNativeComponent.d.ts.map +1 -1
  232. package/lib/typescript/src/types/index.d.ts +2 -2
  233. package/lib/typescript/src/types/index.d.ts.map +1 -1
  234. package/lib/typescript/src/utils/Logger.d.ts +1 -1
  235. package/lib/typescript/src/utils/Logger.d.ts.map +1 -1
  236. package/lib/typescript/src/utils/MapboxStyles.d.ts +202 -2
  237. package/lib/typescript/src/utils/MapboxStyles.d.ts.map +1 -1
  238. package/lib/typescript/src/utils/StyleValue.d.ts +1 -1
  239. package/lib/typescript/src/utils/StyleValue.d.ts.map +1 -1
  240. package/lib/typescript/src/utils/index.d.ts +2 -2
  241. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  242. package/lib/typescript/src/utils/nativeRef.d.ts +1 -1
  243. package/lib/typescript/src/utils/nativeRef.d.ts.map +1 -1
  244. package/lib/typescript/src/utils/styleMap.d.ts.map +1 -1
  245. package/lib/typescript/src/web/components/Camera.d.ts +3 -3
  246. package/lib/typescript/src/web/components/Camera.d.ts.map +1 -1
  247. package/package.json +12 -3
  248. package/plugin/build/withMapbox.d.ts +1 -1
  249. package/plugin/install.md +2 -2
  250. package/plugin/src/withMapbox.ts +2 -2
  251. package/src/Mapbox.native.ts +3 -1
  252. package/src/components/AbstractLayer.tsx +2 -2
  253. package/src/components/AbstractSource.tsx +1 -1
  254. package/src/components/Annotation.tsx +4 -4
  255. package/src/components/Callout.tsx +3 -3
  256. package/src/components/Camera.tsx +1 -1
  257. package/src/components/CameraGestureObserver.tsx +1 -1
  258. package/src/components/CircleLayer.tsx +1 -1
  259. package/src/components/CustomLocationProvider.tsx +1 -1
  260. package/src/components/FillExtrusionLayer.tsx +1 -1
  261. package/src/components/HeadingIndicator.tsx +1 -1
  262. package/src/components/HillshadeLayer.tsx +1 -1
  263. package/src/components/Image.tsx +1 -1
  264. package/src/components/ImageSource.tsx +1 -1
  265. package/src/components/Images.tsx +6 -3
  266. package/src/components/LineLayer.tsx +1 -1
  267. package/src/components/MapView.tsx +10 -5
  268. package/src/components/MarkerView.tsx +10 -3
  269. package/src/components/ModelLayer.tsx +1 -1
  270. package/src/components/NativeBridgeComponent.tsx +1 -1
  271. package/src/components/PointAnnotation.tsx +18 -5
  272. package/src/components/Rain.tsx +31 -0
  273. package/src/components/RasterArraySource.tsx +1 -1
  274. package/src/components/RasterLayer.tsx +1 -1
  275. package/src/components/RasterParticleLayer.tsx +1 -1
  276. package/src/components/RasterSource.tsx +1 -1
  277. package/src/components/ShapeSource.tsx +11 -4
  278. package/src/components/SkyLayer.tsx +1 -1
  279. package/src/components/Snow.tsx +22 -0
  280. package/src/components/SymbolLayer.tsx +1 -1
  281. package/src/components/UserLocation.tsx +2 -2
  282. package/src/components/VectorSource.tsx +2 -2
  283. package/src/modules/location/locationManager.ts +3 -3
  284. package/src/modules/offline/offlineManager.ts +1 -1
  285. package/src/shapeAnimators/ChangeLineOffsetsShapeAnimator.ts +1 -1
  286. package/src/shapeAnimators/MovePointShapeAnimator.ts +2 -2
  287. package/src/specs/RNMBXCameraNativeComponent.ts +3 -3
  288. package/src/specs/RNMBXCustomLocationProviderNativeComponent.ts +1 -1
  289. package/src/specs/RNMBXImageSourceNativeComponent.ts +1 -1
  290. package/src/specs/RNMBXMapViewNativeComponent.ts +5 -4
  291. package/src/specs/RNMBXMarkerViewNativeComponent.ts +2 -2
  292. package/src/specs/RNMBXModelLayerNativeComponent.ts +2 -2
  293. package/src/specs/RNMBXModelsNativeComponent.ts +1 -1
  294. package/src/specs/RNMBXNativeUserLocationNativeComponent.ts +1 -1
  295. package/src/specs/RNMBXRainNativeComponent.ts +13 -0
  296. package/src/specs/RNMBXRasterArraySourceNativeComponent.ts +1 -1
  297. package/src/specs/RNMBXRasterDemSourceNativeComponent.ts +1 -1
  298. package/src/specs/RNMBXRasterSourceNativeComponent.ts +1 -1
  299. package/src/specs/RNMBXShapeSourceNativeComponent.ts +4 -3
  300. package/src/specs/RNMBXSnowNativeComponent.ts +13 -0
  301. package/src/specs/RNMBXVectorSourceNativeComponent.ts +2 -2
  302. package/src/types/index.ts +2 -2
  303. package/src/utils/Logger.ts +1 -1
  304. package/src/utils/MapboxStyles.ts +222 -1
  305. package/src/utils/StyleValue.ts +1 -1
  306. package/src/utils/index.ts +3 -3
  307. package/src/utils/nativeRef.ts +1 -1
  308. package/src/utils/styleMap.ts +28 -0
  309. package/src/web/components/Camera.tsx +8 -4
@@ -1,11 +1,11 @@
1
- import React, { ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
  import { Animated as RNAnimated, Easing } from 'react-native';
3
- import { Point } from 'geojson';
3
+ import { type Point } from 'geojson';
4
4
 
5
5
  import Animated from '../utils/animated/Animated';
6
6
  import { AnimatedPoint } from '../classes';
7
- import { OnPressEvent } from '../types/OnPressEvent';
8
- import { SymbolLayerStyle } from '../Mapbox';
7
+ import { type OnPressEvent } from '../types/OnPressEvent';
8
+ import { type SymbolLayerStyle } from '../Mapbox';
9
9
 
10
10
  import { SymbolLayer } from './SymbolLayer';
11
11
 
@@ -1,11 +1,11 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  import {
3
3
  View,
4
4
  Text,
5
5
  Animated,
6
6
  StyleSheet,
7
- ViewStyle,
8
- ViewProps,
7
+ type ViewStyle,
8
+ type ViewProps,
9
9
  } from 'react-native';
10
10
 
11
11
  import RNMBXCalloutNativeComponent from '../specs/RNMBXCalloutNativeComponent';
@@ -9,7 +9,7 @@ import React, {
9
9
  } from 'react';
10
10
  import { NativeModules } from 'react-native';
11
11
 
12
- import { MapboxGLEvent } from '../types';
12
+ import { type MapboxGLEvent } from '../types';
13
13
  import { type Position } from '../types/Position';
14
14
  import { makeLatLngBounds, makePoint } from '../utils/geoUtils';
15
15
  import { type NativeRefType } from '../utils/nativeRef';
@@ -1,7 +1,7 @@
1
1
  import { memo } from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import RNMBXCameraGestureObserverNativeComponent, {
4
- OnMapSteadyEvent,
4
+ type OnMapSteadyEvent,
5
5
  } from '../specs/RNMBXCameraGestureObserverNativeComponent';
6
6
 
7
7
  type Props = ViewProps & {
@@ -5,7 +5,7 @@ import type {
5
5
  FilterExpression,
6
6
  CircleLayerStyleProps,
7
7
  } from '../utils/MapboxStyles';
8
- import { StyleValue } from '../utils/StyleValue';
8
+ import { type StyleValue } from '../utils/StyleValue';
9
9
  import RNMBXCircleLayerNativeComponent from '../specs/RNMBXCircleLayerNativeComponent';
10
10
 
11
11
  import AbstractLayer from './AbstractLayer';
@@ -1,7 +1,7 @@
1
1
  import { memo } from 'react';
2
2
 
3
3
  import RNMBXCustomLocationProvider from '../specs/RNMBXCustomLocationProviderNativeComponent';
4
- import { Position } from '../types/Position';
4
+ import { type Position } from '../types/Position';
5
5
 
6
6
  export type Props = {
7
7
  /**
@@ -5,7 +5,7 @@ import type {
5
5
  FilterExpression,
6
6
  FillExtrusionLayerStyleProps,
7
7
  } from '../utils/MapboxStyles';
8
- import { StyleValue } from '../utils/StyleValue';
8
+ import { type StyleValue } from '../utils/StyleValue';
9
9
  import RNMBXFillExtrusionLayerNativeComponent from '../specs/RNMBXFillExtrusionLayerNativeComponent';
10
10
 
11
11
  import AbstractLayer from './AbstractLayer';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
 
3
3
  import headingIcon from '../assets/heading.png';
4
- import { BaseProps } from '../types/BaseProps';
4
+ import { type BaseProps } from '../types/BaseProps';
5
5
 
6
6
  import { SymbolLayer } from './SymbolLayer';
7
7
  import Images from './Images';
@@ -5,7 +5,7 @@ import type {
5
5
  FilterExpression,
6
6
  HillshadeLayerStyleProps,
7
7
  } from '../utils/MapboxStyles';
8
- import { StyleValue } from '../utils/StyleValue';
8
+ import { type StyleValue } from '../utils/StyleValue';
9
9
  import RNMBXHillshadeLayerNativeComponent from '../specs/RNMBXHillshadeLayerNativeComponent';
10
10
 
11
11
  import AbstractLayer from './AbstractLayer';
@@ -1,4 +1,4 @@
1
- import React, { memo, forwardRef, ReactElement } from 'react';
1
+ import React, { memo, forwardRef, type ReactElement } from 'react';
2
2
  import { findNodeHandle } from 'react-native';
3
3
 
4
4
  import RNMBXImageNativeComponent from '../specs/RNMBXImageNativeComponent';
@@ -5,7 +5,7 @@ import {
5
5
  isNumber,
6
6
  resolveImagePath,
7
7
  } from '../utils';
8
- import { BaseProps } from '../types/BaseProps';
8
+ import { type BaseProps } from '../types/BaseProps';
9
9
  import RNMBXImageSourceNativeComponent from '../specs/RNMBXImageSourceNativeComponent';
10
10
 
11
11
  import AbstractSource from './AbstractSource';
@@ -1,6 +1,9 @@
1
- import React, { ReactNode, ReactElement } from 'react';
2
- import { Image as RNImage, ImageURISource } from 'react-native';
3
- import { ImageSourcePropType, ImageResolvedAssetSource } from 'react-native';
1
+ import React, { type ReactNode, type ReactElement } from 'react';
2
+ import { Image as RNImage, type ImageURISource } from 'react-native';
3
+ import {
4
+ type ImageSourcePropType,
5
+ type ImageResolvedAssetSource,
6
+ } from 'react-native';
4
7
 
5
8
  import RNMBXImagesNativeComponent from '../specs/RNMBXImagesNativeComponent';
6
9
 
@@ -4,7 +4,7 @@ import type {
4
4
  FilterExpression,
5
5
  LineLayerStyleProps,
6
6
  } from '../utils/MapboxStyles';
7
- import { StyleValue } from '../utils/StyleValue';
7
+ import { type StyleValue } from '../utils/StyleValue';
8
8
  import RNMBXLineLayerNativeComponent from '../specs/RNMBXLineLayerNativeComponent';
9
9
 
10
10
  import AbstractLayer from './AbstractLayer';
@@ -3,11 +3,11 @@ import {
3
3
  View,
4
4
  StyleSheet,
5
5
  NativeModules,
6
- ViewProps,
7
- NativeSyntheticEvent,
8
- NativeMethods,
9
- HostComponent,
10
- LayoutChangeEvent,
6
+ type ViewProps,
7
+ type NativeSyntheticEvent,
8
+ type NativeMethods,
9
+ type HostComponent,
10
+ type LayoutChangeEvent,
11
11
  } from 'react-native';
12
12
  import debounce from 'debounce';
13
13
 
@@ -289,6 +289,11 @@ type Props = ViewProps & {
289
289
  */
290
290
  scaleBarPosition?: OrnamentPositonProp;
291
291
 
292
+ /**
293
+ * Set the scale bar distance units. Defaults to metric.
294
+ */
295
+ scaleBarUnits?: 'metric' | 'imperial' | 'nautical';
296
+
292
297
  /**
293
298
  * [Android only] Enable/Disable use of GLSurfaceView instead of TextureView.
294
299
  */
@@ -72,6 +72,7 @@ const MarkerView = ({
72
72
  isSelected = false,
73
73
  coordinate,
74
74
  style,
75
+ pointerEvents,
75
76
  children,
76
77
  }: Props) => {
77
78
  // Android new-arch (Fabric) fix: UIManager.measure reads from the Fabric shadow
@@ -98,9 +99,14 @@ const MarkerView = ({
98
99
  // we don't trigger a re-render for no-op native position re-applications.
99
100
  const lastTranslateRef = useRef<{ x: number; y: number } | null>(null);
100
101
 
101
- const handleTouchEnd = useCallback((e: { stopPropagation: () => void }) => {
102
- e.stopPropagation();
103
- }, []);
102
+ const handleTouchEnd = useCallback(
103
+ (e: { stopPropagation: () => void }) => {
104
+ if (pointerEvents !== 'none' && pointerEvents !== 'box-none') {
105
+ e.stopPropagation();
106
+ }
107
+ },
108
+ [pointerEvents],
109
+ );
104
110
 
105
111
  const handleAnnotationPosition = useCallback(
106
112
  (e: NativeSyntheticEvent<{ x: number; y: number }>) => {
@@ -150,6 +156,7 @@ const MarkerView = ({
150
156
  allowOverlap={allowOverlap}
151
157
  allowOverlapWithPuck={allowOverlapWithPuck}
152
158
  isSelected={isSelected}
159
+ pointerEvents={pointerEvents}
153
160
  onTouchEnd={handleTouchEnd}
154
161
  >
155
162
  <RNMBXMakerViewContentComponent
@@ -4,7 +4,7 @@ import type {
4
4
  FilterExpression,
5
5
  ModelLayerStyleProps,
6
6
  } from '../utils/MapboxStyles';
7
- import { StyleValue } from '../utils/StyleValue';
7
+ import { type StyleValue } from '../utils/StyleValue';
8
8
  import RNMBXModelLayerNativeComponent from '../specs/RNMBXModelLayerNativeComponent';
9
9
 
10
10
  import AbstractLayer from './AbstractLayer';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TurboModule } from 'react-native';
2
+ import { type TurboModule } from 'react-native';
3
3
 
4
4
  import { type NativeArg, runNativeMethod } from '../utils';
5
5
 
@@ -1,16 +1,22 @@
1
- import React, { SyntheticEvent, type Component } from 'react';
2
- import { StyleSheet, type ViewProps } from 'react-native';
3
- import { Feature, GeoJsonProperties, Geometry, Point } from 'geojson';
1
+ import React, { type SyntheticEvent, type Component } from 'react';
2
+ import { StyleSheet, View, type ViewProps } from 'react-native';
3
+ import {
4
+ type Feature,
5
+ type GeoJsonProperties,
6
+ type Geometry,
7
+ type Point,
8
+ } from 'geojson';
4
9
 
5
10
  import { toJSONString, isFunction } from '../utils';
6
11
  import checkRequiredProps from '../utils/checkRequiredProps';
7
12
  import { makePoint } from '../utils/geoUtils';
8
13
  import { type BaseProps } from '../types/BaseProps';
9
- import { Position } from '../types/Position';
14
+ import { type Position } from '../types/Position';
10
15
  import RNMBXPointAnnotationNativeComponent from '../specs/RNMBXPointAnnotationNativeComponent';
11
16
  import NativeRNMBXPointAnnotationModule from '../specs/NativeRNMBXPointAnnotationModule';
12
17
 
13
18
  import NativeBridgeComponent, { type RNMBEvent } from './NativeBridgeComponent';
19
+ import Callout from './Callout';
14
20
 
15
21
  export const NATIVE_MODULE_NAME = 'RNMBXPointAnnotation';
16
22
 
@@ -230,10 +236,17 @@ class PointAnnotation extends NativeBridgeComponent(
230
236
  onMapboxPointAnnotationDragEnd: this._onDragEnd,
231
237
  coordinate: this._getCoordinate(),
232
238
  };
239
+ const children = React.Children.toArray(this.props.children);
240
+ const callout = children.find(
241
+ (c) => React.isValidElement(c) && c.type === Callout,
242
+ );
243
+ const content = children.filter((c) => c !== callout);
244
+
233
245
  return (
234
246
  // @ts-expect-error just codegen stuff
235
247
  <RNMBXPointAnnotationNativeComponent {...props}>
236
- {this.props.children}
248
+ <View collapsable={false}>{content}</View>
249
+ {callout}
237
250
  </RNMBXPointAnnotationNativeComponent>
238
251
  );
239
252
  }
@@ -0,0 +1,31 @@
1
+ import { memo, useMemo } from 'react';
2
+
3
+ import type { RainLayerStyleProps } from '../utils/MapboxStyles';
4
+ import { transformStyle } from '../utils/StyleValue';
5
+ import type { BaseProps } from '../types/BaseProps';
6
+ import RNMBXRainNativeComponent from '../specs/RNMBXRainNativeComponent';
7
+
8
+ type Props = BaseProps & {
9
+ /** Rain particle effect style properties.
10
+ *
11
+ * @note The default `color` and `vignetteColor` values use `measure-light("brightness")`
12
+ * expressions that are only available in Mapbox Standard-based styles
13
+ * (`mapbox://styles/mapbox/standard`, `mapbox://styles/mapbox/standard-satellite`).
14
+ * When using legacy or custom styles, set `color` and `vignetteColor` explicitly to
15
+ * avoid "Brightness is unavailable in the current evaluation context" warnings and
16
+ * invisible rain. For example: `color="#a8adbc" vignetteColor="#464646"`.
17
+ */
18
+ style?: RainLayerStyleProps;
19
+ };
20
+
21
+ export const Rain = memo((props: Props) => {
22
+ const baseProps = useMemo(() => {
23
+ return {
24
+ ...props,
25
+ reactStyle: transformStyle(props.style),
26
+ style: undefined,
27
+ };
28
+ }, [props]);
29
+
30
+ return <RNMBXRainNativeComponent {...baseProps} />;
31
+ });
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { NativeModules } from 'react-native';
3
3
 
4
4
  import { cloneReactChildrenWithProps } from '../utils';
5
- import { BaseProps } from '../types/BaseProps';
5
+ import { type BaseProps } from '../types/BaseProps';
6
6
  import RNMBXRasterArraySourceNativeComponent from '../specs/RNMBXRasterArraySourceNativeComponent';
7
7
 
8
8
  import AbstractSource from './AbstractSource';
@@ -5,7 +5,7 @@ import type {
5
5
  FilterExpression,
6
6
  RasterLayerStyleProps,
7
7
  } from '../utils/MapboxStyles';
8
- import { StyleValue } from '../utils/StyleValue';
8
+ import { type StyleValue } from '../utils/StyleValue';
9
9
  import RNMBXRasterLayerNativeComponent from '../specs/RNMBXRasterLayerNativeComponent';
10
10
 
11
11
  import AbstractLayer from './AbstractLayer';
@@ -5,7 +5,7 @@ import type {
5
5
  FilterExpression,
6
6
  RasterParticleLayerStyleProps,
7
7
  } from '../utils/MapboxStyles';
8
- import { StyleValue } from '../utils/StyleValue';
8
+ import { type StyleValue } from '../utils/StyleValue';
9
9
  import RNMBXRasterParticleLayerNativeComponent from '../specs/RNMBXRasterParticleLayerNativeComponent';
10
10
 
11
11
  import AbstractLayer from './AbstractLayer';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { NativeModules } from 'react-native';
3
3
 
4
4
  import { cloneReactChildrenWithProps } from '../utils';
5
- import { BaseProps } from '../types/BaseProps';
5
+ import { type BaseProps } from '../types/BaseProps';
6
6
  import RNMBXRasterSourceNativeComponent from '../specs/RNMBXRasterSourceNativeComponent';
7
7
 
8
8
  import AbstractSource from './AbstractSource';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import {
3
- NativeMethods,
3
+ type NativeMethods,
4
4
  NativeModules,
5
- NativeSyntheticEvent,
5
+ type NativeSyntheticEvent,
6
6
  } from 'react-native';
7
7
 
8
8
  import RNMBXShapeSourceNativeComponent from '../specs/RNMBXShapeSourceNativeComponent';
@@ -14,8 +14,8 @@ import {
14
14
  isAndroid,
15
15
  } from '../utils';
16
16
  import { copyPropertiesAsDeprecated } from '../utils/deprecation';
17
- import { OnPressEvent } from '../types/OnPressEvent';
18
- import { ShapeAnimatorInterface } from '../shapeAnimators';
17
+ import { type OnPressEvent } from '../types/OnPressEvent';
18
+ import { type ShapeAnimatorInterface } from '../shapeAnimators';
19
19
 
20
20
  import AbstractSource from './AbstractSource';
21
21
  import NativeBridgeComponent from './NativeBridgeComponent';
@@ -93,6 +93,12 @@ export type Props = {
93
93
  */
94
94
  maxZoomLevel?: number;
95
95
 
96
+ /**
97
+ * Specifies the minimum zoom level at which to create vector tiles.
98
+ * The default value is 0.
99
+ */
100
+ minZoomLevel?: number;
101
+
96
102
  /**
97
103
  * Specifies the size of the tile buffer on each side.
98
104
  * A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself.
@@ -312,6 +318,7 @@ export class ShapeSource extends NativeBridgeComponent(
312
318
  clusterMaxZoomLevel: this.props.clusterMaxZoomLevel,
313
319
  clusterProperties: this.props.clusterProperties,
314
320
  maxZoomLevel: this.props.maxZoomLevel,
321
+ minZoomLevel: this.props.minZoomLevel,
315
322
  buffer: this.props.buffer,
316
323
  tolerance: this.props.tolerance,
317
324
  lineMetrics: this.props.lineMetrics,
@@ -5,7 +5,7 @@ import type {
5
5
  FilterExpression,
6
6
  SkyLayerStyleProps,
7
7
  } from '../utils/MapboxStyles';
8
- import { StyleValue } from '../utils/StyleValue';
8
+ import { type StyleValue } from '../utils/StyleValue';
9
9
  import RNMBXSkyLayerNativeComponent from '../specs/RNMBXSkyLayerNativeComponent';
10
10
 
11
11
  import AbstractLayer from './AbstractLayer';
@@ -0,0 +1,22 @@
1
+ import { memo, useMemo } from 'react';
2
+
3
+ import type { SnowLayerStyleProps } from '../utils/MapboxStyles';
4
+ import { transformStyle } from '../utils/StyleValue';
5
+ import type { BaseProps } from '../types/BaseProps';
6
+ import RNMBXSnowNativeComponent from '../specs/RNMBXSnowNativeComponent';
7
+
8
+ type Props = BaseProps & {
9
+ style?: SnowLayerStyleProps;
10
+ };
11
+
12
+ export const Snow = memo((props: Props) => {
13
+ const baseProps = useMemo(() => {
14
+ return {
15
+ ...props,
16
+ reactStyle: transformStyle(props.style),
17
+ style: undefined,
18
+ };
19
+ }, [props]);
20
+
21
+ return <RNMBXSnowNativeComponent {...baseProps} />;
22
+ });
@@ -1,4 +1,4 @@
1
- import React, { JSX } from 'react';
1
+ import React, { type JSX } from 'react';
2
2
  import { View, NativeModules } from 'react-native';
3
3
 
4
4
  import type {
@@ -1,8 +1,8 @@
1
- import React, { ReactElement } from 'react';
1
+ import React, { type ReactElement } from 'react';
2
2
 
3
3
  import locationManager from '../modules/location/locationManager';
4
4
  import { type Location } from '../modules/location/locationManager';
5
- import { CircleLayerStyle } from '../Mapbox';
5
+ import { type CircleLayerStyle } from '../Mapbox';
6
6
 
7
7
  import Annotation from './Annotation';
8
8
  import CircleLayer from './CircleLayer';
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { NativeModules, NativeSyntheticEvent } from 'react-native';
2
+ import { NativeModules, type NativeSyntheticEvent } from 'react-native';
3
3
 
4
4
  import RNMBXVectorSourceNativeComponent from '../specs/RNMBXVectorSourceNativeComponent';
5
5
  import { cloneReactChildrenWithProps, isFunction } from '../utils';
6
6
  import { copyPropertiesAsDeprecated } from '../utils/deprecation';
7
- import { OnPressEvent } from '../types/OnPressEvent';
7
+ import { type OnPressEvent } from '../types/OnPressEvent';
8
8
 
9
9
  import AbstractSource from './AbstractSource';
10
10
 
@@ -2,11 +2,11 @@ import {
2
2
  NativeModules,
3
3
  NativeEventEmitter,
4
4
  AppState,
5
- NativeEventSubscription,
6
- EmitterSubscription,
5
+ type NativeEventSubscription,
6
+ type EmitterSubscription,
7
7
  type AppStateStatus,
8
8
  Platform,
9
- EventSubscription,
9
+ type EventSubscription,
10
10
  } from 'react-native';
11
11
 
12
12
  import NativeRNMBXLocationModule from '../../specs/NativeRNMBXLocationModule';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NativeModules,
3
3
  NativeEventEmitter,
4
- EventSubscription,
4
+ type EventSubscription,
5
5
  } from 'react-native';
6
6
 
7
7
  import { isUndefined, isFunction, isAndroid } from '../../utils';
@@ -5,7 +5,7 @@ import NativeRNMBXChangeLineOffsetsShapeAnimatorModule from '../specs/NativeRNMB
5
5
 
6
6
  import ShapeAnimatorManager from './ShapeAnimatorManager';
7
7
 
8
- import { ShapeAnimatorInterface } from '.';
8
+ import { type ShapeAnimatorInterface } from '.';
9
9
 
10
10
  export default class ChangeLineOffsetsShapeAnimator
11
11
  implements ShapeAnimatorInterface
@@ -1,9 +1,9 @@
1
- import { Position } from '../types/Position';
1
+ import { type Position } from '../types/Position';
2
2
  import NativeRNMBXMovePointShapeAnimatorModule from '../specs/NativeRNMBXMovePointShapeAnimatorModule';
3
3
 
4
4
  import ShapeAnimatorManager from './ShapeAnimatorManager';
5
5
 
6
- import { ShapeAnimatorInterface } from '.';
6
+ import { type ShapeAnimatorInterface } from '.';
7
7
 
8
8
  export default class MovePointShapeAnimator implements ShapeAnimatorInterface {
9
9
  __nativeTag: number;
@@ -1,9 +1,9 @@
1
1
  import type { HostComponent, ViewProps } from 'react-native';
2
2
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
3
  import {
4
- DirectEventHandler,
5
- Double,
6
- Int32,
4
+ type DirectEventHandler,
5
+ type Double,
6
+ type Int32,
7
7
  // @ts-ignore - CI environment type resolution issue for CodegenTypes
8
8
  } from 'react-native/Libraries/Types/CodegenTypes';
9
9
 
@@ -5,7 +5,7 @@ import { Double } from 'react-native/Libraries/Types/CodegenTypes';
5
5
 
6
6
  import type { Position } from '../types/Position';
7
7
 
8
- import { UnsafeMixed } from './codegenUtils';
8
+ import { type UnsafeMixed } from './codegenUtils';
9
9
 
10
10
  // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
11
11
  type OptionalProp<T> = UnsafeMixed<T>;
@@ -1,7 +1,7 @@
1
1
  import type { HostComponent, ViewProps } from 'react-native';
2
2
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
3
 
4
- import { UnsafeMixed } from './codegenUtils';
4
+ import { type UnsafeMixed } from './codegenUtils';
5
5
 
6
6
  export interface NativeProps extends ViewProps {
7
7
  id: UnsafeMixed<string>;
@@ -1,10 +1,10 @@
1
1
  import type { HostComponent, ViewProps } from 'react-native';
2
2
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
3
  import {
4
- BubblingEventHandler,
5
- DirectEventHandler,
6
- Int32,
7
- Double,
4
+ type BubblingEventHandler,
5
+ type DirectEventHandler,
6
+ type Int32,
7
+ type Double,
8
8
  // @ts-ignore - CI environment type resolution issue for CodegenTypes
9
9
  } from 'react-native/Libraries/Types/CodegenTypes';
10
10
 
@@ -49,6 +49,7 @@ export interface NativeProps extends ViewProps {
49
49
 
50
50
  scaleBarEnabled?: OptionalProp<boolean>;
51
51
  scaleBarPosition?: UnsafeMixed<any>;
52
+ scaleBarUnits?: OptionalProp<string>;
52
53
 
53
54
  zoomEnabled?: OptionalProp<boolean>;
54
55
  scrollEnabled?: OptionalProp<boolean>;
@@ -3,9 +3,9 @@ import type { HostComponent, ViewProps } from 'react-native';
3
3
  import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
5
 
6
- import { Position } from '../types/Position';
6
+ import { type Position } from '../types/Position';
7
7
 
8
- import { UnsafeMixed } from './codegenUtils';
8
+ import { type UnsafeMixed } from './codegenUtils';
9
9
 
10
10
  type Point = {
11
11
  x: Int32;
@@ -4,9 +4,9 @@ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNati
4
4
  import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
5
5
 
6
6
  import type { FilterExpression } from '../utils/MapboxStyles';
7
- import { StyleValue } from '../utils/StyleValue';
7
+ import { type StyleValue } from '../utils/StyleValue';
8
8
 
9
- import { UnsafeMixed } from './codegenUtils';
9
+ import { type UnsafeMixed } from './codegenUtils';
10
10
 
11
11
  // @{codepart-replace-start(CommonLayerNativeComponentsProps.codepart-ts)}
12
12
  // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
@@ -1,7 +1,7 @@
1
1
  import type { HostComponent, ViewProps } from 'react-native';
2
2
  import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
3
 
4
- import { UnsafeMixed } from './codegenUtils';
4
+ import { type UnsafeMixed } from './codegenUtils';
5
5
 
6
6
  type Asset = {
7
7
  __packager_asset?: boolean;
@@ -7,7 +7,7 @@ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNati
7
7
 
8
8
  import type { Expression } from '../utils/MapboxStyles';
9
9
 
10
- import { UnsafeMixed } from './codegenUtils';
10
+ import { type UnsafeMixed } from './codegenUtils';
11
11
 
12
12
  type Value<T> = T | Expression;
13
13
 
@@ -0,0 +1,13 @@
1
+ import type { HostComponent, ViewProps } from 'react-native';
2
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
3
+
4
+ import type { UnsafeMixed } from './codegenUtils';
5
+
6
+ export interface NativeProps extends ViewProps {
7
+ reactStyle: UnsafeMixed<any>;
8
+ }
9
+
10
+ // @ts-ignore-error - Codegen requires single cast but TypeScript prefers double cast
11
+ export default codegenNativeComponent<NativeProps>(
12
+ 'RNMBXRain',
13
+ ) as HostComponent<NativeProps>;
@@ -3,7 +3,7 @@ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNati
3
3
  // @ts-ignore - CI environment type resolution issue for CodegenTypes
4
4
  import { Double } from 'react-native/Libraries/Types/CodegenTypes';
5
5
 
6
- import { UnsafeMixed } from './codegenUtils';
6
+ import { type UnsafeMixed } from './codegenUtils';
7
7
 
8
8
  export interface NativeProps extends ViewProps {
9
9
  id: UnsafeMixed<string>;