@rnmapbox/maps 10.1.0-beta.11 → 10.1.0-beta.13

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 (353) hide show
  1. package/android/src/main/java/com/rnmapbox/rnmbx/components/AbstractMapFeature.kt +2 -0
  2. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCamera.kt +66 -9
  3. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/LocationComponentManager.kt +1 -1
  4. package/android/src/main/java/com/rnmapbox/rnmbx/components/location/UserTrackingMode.kt +1 -0
  5. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapView.kt +7 -4
  6. package/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt +51 -0
  7. package/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXSkyLayerManager.kt +0 -6
  8. package/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/ReadableMap.kt +35 -0
  9. package/android/src/main/mapbox-v11-compat/v11/com/mapbox/rnmbx/v11compat/Image.kt +1 -1
  10. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMapViewManagerDelegate.java +3 -0
  11. package/android/src/main/old-arch/com/facebook/react/viewmanagers/RNMBXMapViewManagerInterface.java +1 -0
  12. package/ios/RNMBX/CustomHttpHeaders.swift +11 -0
  13. package/ios/RNMBX/RNMBXMapView.swift +56 -1
  14. package/ios/RNMBX/RNMBXMapViewManager.m +2 -0
  15. package/ios/install.md +1 -1
  16. package/lib/commonjs/components/AbstractLayer.js +1 -2
  17. package/lib/commonjs/components/AbstractLayer.js.map +1 -1
  18. package/lib/commonjs/components/Annotation.js +2 -3
  19. package/lib/commonjs/components/Annotation.js.map +1 -1
  20. package/lib/commonjs/components/Camera.js +7 -10
  21. package/lib/commonjs/components/Camera.js.map +1 -1
  22. package/lib/commonjs/components/Light.js +1 -2
  23. package/lib/commonjs/components/Light.js.map +1 -1
  24. package/lib/commonjs/components/MapView.js +2 -5
  25. package/lib/commonjs/components/MapView.js.map +1 -1
  26. package/lib/commonjs/components/ShapeSource.js +1 -2
  27. package/lib/commonjs/components/ShapeSource.js.map +1 -1
  28. package/lib/commonjs/components/SymbolLayer.js +1 -1
  29. package/lib/commonjs/components/SymbolLayer.js.map +1 -1
  30. package/lib/commonjs/specs/RNMBXBackgroundLayerNativeComponent.js +1 -0
  31. package/lib/commonjs/specs/RNMBXBackgroundLayerNativeComponent.js.map +1 -1
  32. package/lib/commonjs/specs/RNMBXCameraNativeComponent.js +1 -0
  33. package/lib/commonjs/specs/RNMBXCameraNativeComponent.js.map +1 -1
  34. package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js +1 -0
  35. package/lib/commonjs/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
  36. package/lib/commonjs/specs/RNMBXFillExtrusionLayerNativeComponent.js +1 -0
  37. package/lib/commonjs/specs/RNMBXFillExtrusionLayerNativeComponent.js.map +1 -1
  38. package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js +1 -0
  39. package/lib/commonjs/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
  40. package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js +1 -0
  41. package/lib/commonjs/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
  42. package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js +1 -0
  43. package/lib/commonjs/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
  44. package/lib/commonjs/specs/RNMBXMapViewNativeComponent.js +1 -0
  45. package/lib/commonjs/specs/RNMBXMapViewNativeComponent.js.map +1 -1
  46. package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js +1 -0
  47. package/lib/commonjs/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
  48. package/lib/commonjs/specs/RNMBXSkyLayerNativeComponent.js +1 -0
  49. package/lib/commonjs/specs/RNMBXSkyLayerNativeComponent.js.map +1 -1
  50. package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js +1 -0
  51. package/lib/commonjs/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
  52. package/lib/commonjs/utils/Logger.js +1 -2
  53. package/lib/commonjs/utils/Logger.js.map +1 -1
  54. package/lib/module/components/AbstractLayer.js +1 -2
  55. package/lib/module/components/AbstractLayer.js.map +1 -1
  56. package/lib/module/components/Annotation.js +2 -3
  57. package/lib/module/components/Annotation.js.map +1 -1
  58. package/lib/module/components/Camera.js +7 -10
  59. package/lib/module/components/Camera.js.map +1 -1
  60. package/lib/module/components/Light.js +1 -2
  61. package/lib/module/components/Light.js.map +1 -1
  62. package/lib/module/components/MapView.js +2 -5
  63. package/lib/module/components/MapView.js.map +1 -1
  64. package/lib/module/components/ShapeSource.js +1 -2
  65. package/lib/module/components/ShapeSource.js.map +1 -1
  66. package/lib/module/components/SymbolLayer.js +1 -1
  67. package/lib/module/components/SymbolLayer.js.map +1 -1
  68. package/lib/module/specs/RNMBXBackgroundLayerNativeComponent.js +3 -0
  69. package/lib/module/specs/RNMBXBackgroundLayerNativeComponent.js.map +1 -1
  70. package/lib/module/specs/RNMBXCameraNativeComponent.js +3 -0
  71. package/lib/module/specs/RNMBXCameraNativeComponent.js.map +1 -1
  72. package/lib/module/specs/RNMBXCircleLayerNativeComponent.js +3 -0
  73. package/lib/module/specs/RNMBXCircleLayerNativeComponent.js.map +1 -1
  74. package/lib/module/specs/RNMBXFillExtrusionLayerNativeComponent.js +3 -0
  75. package/lib/module/specs/RNMBXFillExtrusionLayerNativeComponent.js.map +1 -1
  76. package/lib/module/specs/RNMBXFillLayerNativeComponent.js +3 -0
  77. package/lib/module/specs/RNMBXFillLayerNativeComponent.js.map +1 -1
  78. package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js +3 -0
  79. package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.js.map +1 -1
  80. package/lib/module/specs/RNMBXLineLayerNativeComponent.js +3 -0
  81. package/lib/module/specs/RNMBXLineLayerNativeComponent.js.map +1 -1
  82. package/lib/module/specs/RNMBXMapViewNativeComponent.js +3 -0
  83. package/lib/module/specs/RNMBXMapViewNativeComponent.js.map +1 -1
  84. package/lib/module/specs/RNMBXRasterLayerNativeComponent.js +3 -0
  85. package/lib/module/specs/RNMBXRasterLayerNativeComponent.js.map +1 -1
  86. package/lib/module/specs/RNMBXSkyLayerNativeComponent.js +3 -0
  87. package/lib/module/specs/RNMBXSkyLayerNativeComponent.js.map +1 -1
  88. package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js +3 -0
  89. package/lib/module/specs/RNMBXSymbolLayerNativeComponent.js.map +1 -1
  90. package/lib/module/utils/Logger.js +1 -2
  91. package/lib/module/utils/Logger.js.map +1 -1
  92. package/lib/typescript/jest.config.d.ts +4 -0
  93. package/lib/typescript/jest.config.d.ts.map +1 -0
  94. package/lib/typescript/src/Mapbox.d.ts.map +1 -0
  95. package/lib/typescript/src/RNMBXModule.d.ts.map +1 -0
  96. package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -0
  97. package/lib/typescript/src/components/AbstractSource.d.ts.map +1 -0
  98. package/lib/typescript/src/components/Annotation.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Atmosphere.d.ts.map +1 -0
  100. package/lib/typescript/src/components/BackgroundLayer.d.ts.map +1 -0
  101. package/lib/typescript/src/components/Callout.d.ts.map +1 -0
  102. package/lib/typescript/src/components/Camera.d.ts.map +1 -0
  103. package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -0
  104. package/lib/typescript/src/components/FillExtrusionLayer.d.ts.map +1 -0
  105. package/lib/typescript/src/components/FillLayer.d.ts.map +1 -0
  106. package/lib/typescript/src/components/HeadingIndicator.d.ts.map +1 -0
  107. package/lib/typescript/src/components/HeatmapLayer.d.ts.map +1 -0
  108. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  109. package/lib/typescript/src/components/ImageSource.d.ts.map +1 -0
  110. package/lib/typescript/src/components/Images.d.ts.map +1 -0
  111. package/lib/typescript/src/components/Light.d.ts.map +1 -0
  112. package/lib/typescript/src/components/LineLayer.d.ts.map +1 -0
  113. package/lib/typescript/{components → src/components}/MapView.d.ts +64 -0
  114. package/lib/typescript/src/components/MapView.d.ts.map +1 -0
  115. package/lib/typescript/src/components/MarkerView.d.ts.map +1 -0
  116. package/lib/typescript/src/components/NativeBridgeComponent.d.ts.map +1 -0
  117. package/lib/typescript/src/components/NativeUserLocation.d.ts.map +1 -0
  118. package/lib/typescript/src/components/PointAnnotation.d.ts.map +1 -0
  119. package/lib/typescript/src/components/RasterDemSource.d.ts.map +1 -0
  120. package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -0
  121. package/lib/typescript/src/components/RasterSource.d.ts.map +1 -0
  122. package/lib/typescript/src/components/ShapeSource.d.ts.map +1 -0
  123. package/lib/typescript/src/components/SkyLayer.d.ts.map +1 -0
  124. package/lib/typescript/src/components/Style.d.ts.map +1 -0
  125. package/lib/typescript/src/components/StyleImport.d.ts.map +1 -0
  126. package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -0
  127. package/lib/typescript/src/components/Terrain.d.ts.map +1 -0
  128. package/lib/typescript/src/components/UserLocation.d.ts.map +1 -0
  129. package/lib/typescript/src/components/VectorSource.d.ts.map +1 -0
  130. package/lib/typescript/src/index.d.ts.map +1 -0
  131. package/lib/typescript/src/modules/location/locationManager.d.ts.map +1 -0
  132. package/lib/typescript/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -0
  133. package/lib/typescript/src/modules/offline/OfflinePack.d.ts.map +1 -0
  134. package/lib/typescript/src/modules/offline/offlineManager.d.ts.map +1 -0
  135. package/lib/typescript/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -0
  136. package/lib/typescript/src/modules/snapshot/snapshotManager.d.ts.map +1 -0
  137. package/lib/typescript/src/requestAndroidLocationPermissions.d.ts.map +1 -0
  138. package/lib/typescript/src/specs/NativeMapViewModule.d.ts.map +1 -0
  139. package/lib/typescript/src/specs/RNMBXAndroidTextureMapViewNativeComponent.d.ts.map +1 -0
  140. package/lib/typescript/src/specs/RNMBXAtmosphereNativeComponent.d.ts.map +1 -0
  141. package/lib/typescript/{specs → src/specs}/RNMBXBackgroundLayerNativeComponent.d.ts +7 -6
  142. package/lib/typescript/src/specs/RNMBXBackgroundLayerNativeComponent.d.ts.map +1 -0
  143. package/lib/typescript/{specs → src/specs}/RNMBXCameraNativeComponent.d.ts +12 -11
  144. package/lib/typescript/src/specs/RNMBXCameraNativeComponent.d.ts.map +1 -0
  145. package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +20 -0
  146. package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -0
  147. package/lib/typescript/{specs → src/specs}/RNMBXFillExtrusionLayerNativeComponent.d.ts +10 -9
  148. package/lib/typescript/src/specs/RNMBXFillExtrusionLayerNativeComponent.d.ts.map +1 -0
  149. package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +20 -0
  150. package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -0
  151. package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +20 -0
  152. package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -0
  153. package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +20 -0
  154. package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -0
  155. package/lib/typescript/{specs → src/specs}/RNMBXMapViewNativeComponent.d.ts +23 -15
  156. package/lib/typescript/src/specs/RNMBXMapViewNativeComponent.d.ts.map +1 -0
  157. package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +20 -0
  158. package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -0
  159. package/lib/typescript/src/specs/RNMBXSkyLayerNativeComponent.d.ts +19 -0
  160. package/lib/typescript/src/specs/RNMBXSkyLayerNativeComponent.d.ts.map +1 -0
  161. package/lib/typescript/src/specs/RNMBXStyleImportNativeComponent.d.ts.map +1 -0
  162. package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +20 -0
  163. package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -0
  164. package/lib/typescript/{specs → src/specs}/codegenUtils.d.ts +1 -0
  165. package/lib/typescript/src/specs/codegenUtils.d.ts.map +1 -0
  166. package/lib/typescript/src/types/BaseProps.d.ts.map +1 -0
  167. package/lib/typescript/src/types/OnPressEvent.d.ts.map +1 -0
  168. package/lib/typescript/src/types/Position.d.ts.map +1 -0
  169. package/lib/typescript/src/types/index.d.ts.map +1 -0
  170. package/lib/typescript/src/utils/BridgeValue.d.ts.map +1 -0
  171. package/lib/typescript/src/utils/Logger.d.ts.map +1 -0
  172. package/lib/typescript/src/utils/StyleValue.d.ts.map +1 -0
  173. package/lib/typescript/src/utils/animated/Animated.d.ts.map +1 -0
  174. package/lib/typescript/src/utils/checkRequiredProps.d.ts.map +1 -0
  175. package/lib/typescript/src/utils/deprecation.d.ts.map +1 -0
  176. package/lib/typescript/src/utils/filterUtils.d.ts.map +1 -0
  177. package/lib/typescript/src/utils/geoUtils.d.ts.map +1 -0
  178. package/lib/typescript/src/utils/getAnnotationsLayerID.d.ts.map +1 -0
  179. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  180. package/lib/typescript/src/utils/nativeRef.d.ts.map +1 -0
  181. package/lib/typescript/src/utils/styleMap.d.ts.map +1 -0
  182. package/lib/typescript/src/web/MapContext.d.ts.map +1 -0
  183. package/lib/typescript/src/web/components/Camera.d.ts.map +1 -0
  184. package/lib/typescript/src/web/components/MapView.d.ts.map +1 -0
  185. package/lib/typescript/src/web/utils/Logger.d.ts.map +1 -0
  186. package/package.json +10 -25
  187. package/rnmapbox-maps.podspec +3 -0
  188. package/setup-jest.js +19 -4
  189. package/src/components/MapView.tsx +66 -1
  190. package/src/specs/RNMBXBackgroundLayerNativeComponent.ts +9 -6
  191. package/src/specs/RNMBXCameraNativeComponent.ts +14 -11
  192. package/src/specs/RNMBXCircleLayerNativeComponent.ts +11 -8
  193. package/src/specs/RNMBXFillExtrusionLayerNativeComponent.ts +12 -9
  194. package/src/specs/RNMBXFillLayerNativeComponent.ts +11 -8
  195. package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +12 -9
  196. package/src/specs/RNMBXLineLayerNativeComponent.ts +11 -8
  197. package/src/specs/RNMBXMapViewNativeComponent.ts +27 -15
  198. package/src/specs/RNMBXRasterLayerNativeComponent.ts +12 -9
  199. package/src/specs/RNMBXSkyLayerNativeComponent.ts +12 -9
  200. package/src/specs/RNMBXSymbolLayerNativeComponent.ts +12 -9
  201. package/src/specs/codegenUtils.ts +5 -0
  202. package/lib/typescript/Mapbox.d.ts.map +0 -1
  203. package/lib/typescript/RNMBXModule.d.ts.map +0 -1
  204. package/lib/typescript/components/AbstractLayer.d.ts.map +0 -1
  205. package/lib/typescript/components/AbstractSource.d.ts.map +0 -1
  206. package/lib/typescript/components/Annotation.d.ts.map +0 -1
  207. package/lib/typescript/components/Atmosphere.d.ts.map +0 -1
  208. package/lib/typescript/components/BackgroundLayer.d.ts.map +0 -1
  209. package/lib/typescript/components/Callout.d.ts.map +0 -1
  210. package/lib/typescript/components/Camera.d.ts.map +0 -1
  211. package/lib/typescript/components/CircleLayer.d.ts.map +0 -1
  212. package/lib/typescript/components/FillExtrusionLayer.d.ts.map +0 -1
  213. package/lib/typescript/components/FillLayer.d.ts.map +0 -1
  214. package/lib/typescript/components/HeadingIndicator.d.ts.map +0 -1
  215. package/lib/typescript/components/HeatmapLayer.d.ts.map +0 -1
  216. package/lib/typescript/components/Image.d.ts.map +0 -1
  217. package/lib/typescript/components/ImageSource.d.ts.map +0 -1
  218. package/lib/typescript/components/Images.d.ts.map +0 -1
  219. package/lib/typescript/components/Light.d.ts.map +0 -1
  220. package/lib/typescript/components/LineLayer.d.ts.map +0 -1
  221. package/lib/typescript/components/MapView.d.ts.map +0 -1
  222. package/lib/typescript/components/MarkerView.d.ts.map +0 -1
  223. package/lib/typescript/components/NativeBridgeComponent.d.ts.map +0 -1
  224. package/lib/typescript/components/NativeUserLocation.d.ts.map +0 -1
  225. package/lib/typescript/components/PointAnnotation.d.ts.map +0 -1
  226. package/lib/typescript/components/RasterDemSource.d.ts.map +0 -1
  227. package/lib/typescript/components/RasterLayer.d.ts.map +0 -1
  228. package/lib/typescript/components/RasterSource.d.ts.map +0 -1
  229. package/lib/typescript/components/ShapeSource.d.ts.map +0 -1
  230. package/lib/typescript/components/SkyLayer.d.ts.map +0 -1
  231. package/lib/typescript/components/Style.d.ts.map +0 -1
  232. package/lib/typescript/components/StyleImport.d.ts.map +0 -1
  233. package/lib/typescript/components/SymbolLayer.d.ts.map +0 -1
  234. package/lib/typescript/components/Terrain.d.ts.map +0 -1
  235. package/lib/typescript/components/UserLocation.d.ts.map +0 -1
  236. package/lib/typescript/components/VectorSource.d.ts.map +0 -1
  237. package/lib/typescript/index.d.ts.map +0 -1
  238. package/lib/typescript/modules/location/locationManager.d.ts.map +0 -1
  239. package/lib/typescript/modules/offline/OfflineCreatePackOptions.d.ts.map +0 -1
  240. package/lib/typescript/modules/offline/OfflinePack.d.ts.map +0 -1
  241. package/lib/typescript/modules/offline/offlineManager.d.ts.map +0 -1
  242. package/lib/typescript/modules/snapshot/SnapshotOptions.d.ts.map +0 -1
  243. package/lib/typescript/modules/snapshot/snapshotManager.d.ts.map +0 -1
  244. package/lib/typescript/requestAndroidLocationPermissions.d.ts.map +0 -1
  245. package/lib/typescript/specs/NativeMapViewModule.d.ts.map +0 -1
  246. package/lib/typescript/specs/RNMBXAndroidTextureMapViewNativeComponent.d.ts.map +0 -1
  247. package/lib/typescript/specs/RNMBXAtmosphereNativeComponent.d.ts.map +0 -1
  248. package/lib/typescript/specs/RNMBXBackgroundLayerNativeComponent.d.ts.map +0 -1
  249. package/lib/typescript/specs/RNMBXCameraNativeComponent.d.ts.map +0 -1
  250. package/lib/typescript/specs/RNMBXCircleLayerNativeComponent.d.ts +0 -19
  251. package/lib/typescript/specs/RNMBXCircleLayerNativeComponent.d.ts.map +0 -1
  252. package/lib/typescript/specs/RNMBXFillExtrusionLayerNativeComponent.d.ts.map +0 -1
  253. package/lib/typescript/specs/RNMBXFillLayerNativeComponent.d.ts +0 -19
  254. package/lib/typescript/specs/RNMBXFillLayerNativeComponent.d.ts.map +0 -1
  255. package/lib/typescript/specs/RNMBXHeatmapLayerNativeComponent.d.ts +0 -19
  256. package/lib/typescript/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +0 -1
  257. package/lib/typescript/specs/RNMBXLineLayerNativeComponent.d.ts +0 -19
  258. package/lib/typescript/specs/RNMBXLineLayerNativeComponent.d.ts.map +0 -1
  259. package/lib/typescript/specs/RNMBXMapViewNativeComponent.d.ts.map +0 -1
  260. package/lib/typescript/specs/RNMBXRasterLayerNativeComponent.d.ts +0 -19
  261. package/lib/typescript/specs/RNMBXRasterLayerNativeComponent.d.ts.map +0 -1
  262. package/lib/typescript/specs/RNMBXSkyLayerNativeComponent.d.ts +0 -18
  263. package/lib/typescript/specs/RNMBXSkyLayerNativeComponent.d.ts.map +0 -1
  264. package/lib/typescript/specs/RNMBXStyleImportNativeComponent.d.ts.map +0 -1
  265. package/lib/typescript/specs/RNMBXSymbolLayerNativeComponent.d.ts +0 -19
  266. package/lib/typescript/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +0 -1
  267. package/lib/typescript/specs/codegenUtils.d.ts.map +0 -1
  268. package/lib/typescript/types/BaseProps.d.ts.map +0 -1
  269. package/lib/typescript/types/OnPressEvent.d.ts.map +0 -1
  270. package/lib/typescript/types/Position.d.ts.map +0 -1
  271. package/lib/typescript/types/index.d.ts.map +0 -1
  272. package/lib/typescript/utils/BridgeValue.d.ts.map +0 -1
  273. package/lib/typescript/utils/Logger.d.ts.map +0 -1
  274. package/lib/typescript/utils/StyleValue.d.ts.map +0 -1
  275. package/lib/typescript/utils/animated/Animated.d.ts.map +0 -1
  276. package/lib/typescript/utils/checkRequiredProps.d.ts.map +0 -1
  277. package/lib/typescript/utils/deprecation.d.ts.map +0 -1
  278. package/lib/typescript/utils/filterUtils.d.ts.map +0 -1
  279. package/lib/typescript/utils/geoUtils.d.ts.map +0 -1
  280. package/lib/typescript/utils/getAnnotationsLayerID.d.ts.map +0 -1
  281. package/lib/typescript/utils/index.d.ts.map +0 -1
  282. package/lib/typescript/utils/nativeRef.d.ts.map +0 -1
  283. package/lib/typescript/utils/styleMap.d.ts.map +0 -1
  284. package/lib/typescript/web/MapContext.d.ts.map +0 -1
  285. package/lib/typescript/web/components/Camera.d.ts.map +0 -1
  286. package/lib/typescript/web/components/MapView.d.ts.map +0 -1
  287. package/lib/typescript/web/utils/Logger.d.ts.map +0 -1
  288. /package/lib/typescript/{Mapbox.d.ts → src/Mapbox.d.ts} +0 -0
  289. /package/lib/typescript/{RNMBXModule.d.ts → src/RNMBXModule.d.ts} +0 -0
  290. /package/lib/typescript/{components → src/components}/AbstractLayer.d.ts +0 -0
  291. /package/lib/typescript/{components → src/components}/AbstractSource.d.ts +0 -0
  292. /package/lib/typescript/{components → src/components}/Annotation.d.ts +0 -0
  293. /package/lib/typescript/{components → src/components}/Atmosphere.d.ts +0 -0
  294. /package/lib/typescript/{components → src/components}/BackgroundLayer.d.ts +0 -0
  295. /package/lib/typescript/{components → src/components}/Callout.d.ts +0 -0
  296. /package/lib/typescript/{components → src/components}/Camera.d.ts +0 -0
  297. /package/lib/typescript/{components → src/components}/CircleLayer.d.ts +0 -0
  298. /package/lib/typescript/{components → src/components}/FillExtrusionLayer.d.ts +0 -0
  299. /package/lib/typescript/{components → src/components}/FillLayer.d.ts +0 -0
  300. /package/lib/typescript/{components → src/components}/HeadingIndicator.d.ts +0 -0
  301. /package/lib/typescript/{components → src/components}/HeatmapLayer.d.ts +0 -0
  302. /package/lib/typescript/{components → src/components}/Image.d.ts +0 -0
  303. /package/lib/typescript/{components → src/components}/ImageSource.d.ts +0 -0
  304. /package/lib/typescript/{components → src/components}/Images.d.ts +0 -0
  305. /package/lib/typescript/{components → src/components}/Light.d.ts +0 -0
  306. /package/lib/typescript/{components → src/components}/LineLayer.d.ts +0 -0
  307. /package/lib/typescript/{components → src/components}/MarkerView.d.ts +0 -0
  308. /package/lib/typescript/{components → src/components}/NativeBridgeComponent.d.ts +0 -0
  309. /package/lib/typescript/{components → src/components}/NativeUserLocation.d.ts +0 -0
  310. /package/lib/typescript/{components → src/components}/PointAnnotation.d.ts +0 -0
  311. /package/lib/typescript/{components → src/components}/RasterDemSource.d.ts +0 -0
  312. /package/lib/typescript/{components → src/components}/RasterLayer.d.ts +0 -0
  313. /package/lib/typescript/{components → src/components}/RasterSource.d.ts +0 -0
  314. /package/lib/typescript/{components → src/components}/ShapeSource.d.ts +0 -0
  315. /package/lib/typescript/{components → src/components}/SkyLayer.d.ts +0 -0
  316. /package/lib/typescript/{components → src/components}/Style.d.ts +0 -0
  317. /package/lib/typescript/{components → src/components}/StyleImport.d.ts +0 -0
  318. /package/lib/typescript/{components → src/components}/SymbolLayer.d.ts +0 -0
  319. /package/lib/typescript/{components → src/components}/Terrain.d.ts +0 -0
  320. /package/lib/typescript/{components → src/components}/UserLocation.d.ts +0 -0
  321. /package/lib/typescript/{components → src/components}/VectorSource.d.ts +0 -0
  322. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  323. /package/lib/typescript/{modules → src/modules}/location/locationManager.d.ts +0 -0
  324. /package/lib/typescript/{modules → src/modules}/offline/OfflineCreatePackOptions.d.ts +0 -0
  325. /package/lib/typescript/{modules → src/modules}/offline/OfflinePack.d.ts +0 -0
  326. /package/lib/typescript/{modules → src/modules}/offline/offlineManager.d.ts +0 -0
  327. /package/lib/typescript/{modules → src/modules}/snapshot/SnapshotOptions.d.ts +0 -0
  328. /package/lib/typescript/{modules → src/modules}/snapshot/snapshotManager.d.ts +0 -0
  329. /package/lib/typescript/{requestAndroidLocationPermissions.d.ts → src/requestAndroidLocationPermissions.d.ts} +0 -0
  330. /package/lib/typescript/{specs → src/specs}/NativeMapViewModule.d.ts +0 -0
  331. /package/lib/typescript/{specs → src/specs}/RNMBXAndroidTextureMapViewNativeComponent.d.ts +0 -0
  332. /package/lib/typescript/{specs → src/specs}/RNMBXAtmosphereNativeComponent.d.ts +0 -0
  333. /package/lib/typescript/{specs → src/specs}/RNMBXStyleImportNativeComponent.d.ts +0 -0
  334. /package/lib/typescript/{types → src/types}/BaseProps.d.ts +0 -0
  335. /package/lib/typescript/{types → src/types}/OnPressEvent.d.ts +0 -0
  336. /package/lib/typescript/{types → src/types}/Position.d.ts +0 -0
  337. /package/lib/typescript/{types → src/types}/index.d.ts +0 -0
  338. /package/lib/typescript/{utils → src/utils}/BridgeValue.d.ts +0 -0
  339. /package/lib/typescript/{utils → src/utils}/Logger.d.ts +0 -0
  340. /package/lib/typescript/{utils → src/utils}/StyleValue.d.ts +0 -0
  341. /package/lib/typescript/{utils → src/utils}/animated/Animated.d.ts +0 -0
  342. /package/lib/typescript/{utils → src/utils}/checkRequiredProps.d.ts +0 -0
  343. /package/lib/typescript/{utils → src/utils}/deprecation.d.ts +0 -0
  344. /package/lib/typescript/{utils → src/utils}/filterUtils.d.ts +0 -0
  345. /package/lib/typescript/{utils → src/utils}/geoUtils.d.ts +0 -0
  346. /package/lib/typescript/{utils → src/utils}/getAnnotationsLayerID.d.ts +0 -0
  347. /package/lib/typescript/{utils → src/utils}/index.d.ts +0 -0
  348. /package/lib/typescript/{utils → src/utils}/nativeRef.d.ts +0 -0
  349. /package/lib/typescript/{utils → src/utils}/styleMap.d.ts +0 -0
  350. /package/lib/typescript/{web → src/web}/MapContext.d.ts +0 -0
  351. /package/lib/typescript/{web → src/web}/components/Camera.d.ts +0 -0
  352. /package/lib/typescript/{web → src/web}/components/MapView.d.ts +0 -0
  353. /package/lib/typescript/{web → src/web}/utils/Logger.d.ts +0 -0
@@ -0,0 +1,20 @@
1
+ import type { HostComponent, ViewProps } from 'react-native';
2
+ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
+ import type { UnsafeMixed } from './codegenUtils';
4
+ declare type OptionalProp<T> = UnsafeMixed<T>;
5
+ export interface NativeProps extends ViewProps {
6
+ id: OptionalProp<string>;
7
+ sourceID?: OptionalProp<string>;
8
+ existing?: OptionalProp<boolean>;
9
+ filter: UnsafeMixed<any[]>;
10
+ aboveLayerID?: OptionalProp<string>;
11
+ belowLayerID?: OptionalProp<string>;
12
+ layerIndex?: OptionalProp<Int32>;
13
+ reactStyle: UnsafeMixed<any>;
14
+ maxZoomLevel?: OptionalProp<Double>;
15
+ minZoomLevel?: OptionalProp<Double>;
16
+ sourceLayerID?: OptionalProp<string>;
17
+ }
18
+ declare const _default: HostComponent<NativeProps>;
19
+ export default _default;
20
+ //# sourceMappingURL=RNMBXRasterLayerNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNMBXRasterLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXRasterLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IACjC,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAE7B,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CACtC;;AAED,wBAEgC"}
@@ -0,0 +1,19 @@
1
+ import type { HostComponent, ViewProps } from 'react-native';
2
+ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
+ import type { UnsafeMixed } from './codegenUtils';
4
+ declare type OptionalProp<T> = UnsafeMixed<T>;
5
+ export interface NativeProps extends ViewProps {
6
+ id?: OptionalProp<string>;
7
+ sourceID?: OptionalProp<string>;
8
+ existing?: OptionalProp<boolean>;
9
+ filter: UnsafeMixed<any[]>;
10
+ aboveLayerID?: OptionalProp<string>;
11
+ belowLayerID?: OptionalProp<string>;
12
+ layerIndex?: OptionalProp<Int32>;
13
+ reactStyle?: OptionalProp<any>;
14
+ maxZoomLevel?: OptionalProp<Double>;
15
+ minZoomLevel?: OptionalProp<Double>;
16
+ }
17
+ declare const _default: HostComponent<NativeProps>;
18
+ export default _default;
19
+ //# sourceMappingURL=RNMBXSkyLayerNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNMBXSkyLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXSkyLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAE/B,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CACrC;;AAED,wBAEgC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNMBXStyleImportNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXStyleImportNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAC;CAChD;;AAED,wBAEgC"}
@@ -0,0 +1,20 @@
1
+ import type { HostComponent, ViewProps } from 'react-native';
2
+ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
+ import type { UnsafeMixed } from './codegenUtils';
4
+ declare type OptionalProp<T> = UnsafeMixed<T>;
5
+ export interface NativeProps extends ViewProps {
6
+ id?: OptionalProp<string>;
7
+ sourceID?: OptionalProp<string>;
8
+ existing?: OptionalProp<boolean>;
9
+ filter: UnsafeMixed<any[]>;
10
+ aboveLayerID?: OptionalProp<string>;
11
+ belowLayerID?: OptionalProp<string>;
12
+ layerIndex?: OptionalProp<Int32>;
13
+ reactStyle: UnsafeMixed<any>;
14
+ maxZoomLevel?: OptionalProp<Double>;
15
+ minZoomLevel?: OptionalProp<Double>;
16
+ sourceLayerID?: OptionalProp<string>;
17
+ }
18
+ declare const _default: HostComponent<NativeProps>;
19
+ export default _default;
20
+ //# sourceMappingURL=RNMBXSymbolLayerNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNMBXSymbolLayerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/specs/RNMBXSymbolLayerNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAEtC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,EAAE,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC1B,QAAQ,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAE3B,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IACjC,UAAU,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAE7B,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CACtC;;AAED,wBAEgC"}
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react-native" />
2
2
  export declare type UnsafeMixed<T> = T;
3
+ export declare type OptionalProp<T> = UnsafeMixed<T>;
3
4
  import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
5
  export declare type Point = {
5
6
  x: Int32;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegenUtils.d.ts","sourceRoot":"","sources":["../../../../src/specs/codegenUtils.ts"],"names":[],"mappings":";AAGA,oBAAY,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC;AAI/B,oBAAY,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE1E,oBAAY,KAAK,GAAG;IAClB,CAAC,EAAE,KAAK,CAAC;IACT,CAAC,EAAE,KAAK,CAAC;CACV,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseProps.d.ts","sourceRoot":"","sources":["../../../../src/types/BaseProps.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS,GAAG;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnPressEvent.d.ts","sourceRoot":"","sources":["../../../../src/types/OnPressEvent.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,KAAK,EAAE;QACL,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Position.d.ts","sourceRoot":"","sources":["../../../../src/types/Position.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,oBAAY,aAAa,CACvB,CAAC,SAAS,MAAM,EAChB,CAAC,GAAG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AK,CAAC,GAAG,EAAE,SAAS;CAarB;AAID,eAAe,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyleValue.d.ts","sourceRoot":"","sources":["../../../../src/utils/StyleValue.ts"],"names":[],"mappings":"AAEA,OAAoB,EAElB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGpD,oBAAY,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAC;AAEF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,kBAAkB,GAAG,SAAS,GACpC,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CA+C3C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../../../../src/utils/animated/Animated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAE/D,QAAA,MAAM,QAAQ;;;;;;;;;;CAab,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkRequiredProps.d.ts","sourceRoot":"","sources":["../../../../src/utils/checkRequiredProps.ts"],"names":[],"mappings":"AAAA,aAAK,YAAY,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC;CACrD,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,KAAK,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EACxC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,QAU3D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../src/utils/deprecation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,EACtE,SAAS,EAAE,CAAC,EACZ,kBAAkB,EAAE,MAAM,GACzB,CAAC,CAQH;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,SAAS,MAAM,EAAE,2BAA2B;AAC1D,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAElD,UAAU,EAAE,cAAc,EAC1B,SAAS,EAAE,kBAAkB,EAC7B,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EACzC,SAAS,GAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAA;CAAO,GAC7D,kBAAkB,CAapB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filterUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/filterUtils.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,GAAG,MAAM,EAAE,CAM9D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geoUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/geoUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,UAAU,EACV,EAAE,EACF,IAAI,EACJ,iBAAiB,EACjB,QAAQ,EACR,KAAK,EACL,OAAO,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,eAAO,MAAM,SAAS,cAAQ,CAAC;AAE/B,eAAO,MAAM,cAAc,mBAAa,CAAC;AAEzC,wBAAgB,gBAAgB,CAC9B,oBAAoB,EAAE,QAAQ,EAC9B,oBAAoB,EAAE,QAAQ,GAC7B,iBAAiB,CAAC,KAAK,CAAC,CAK1B;AAED,eAAO,MAAM,WAAW,gBAAU,CAAC;AAEnC,wBAAgB,qBAAqB,CAAC,CAAC,GAAG,QAAQ,EAAE,CAAC,GAAG,UAAU,EAChE,QAAQ,GAAE,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAM,EACnC,OAAO,CAAC,EAAE;IACR,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,EAAE,CAAC,EAAE,EAAE,CAAC;CACT,2BAGF;AAED,wBAAgB,sBAAsB,CACpC,oBAAoB,EAAE,iBAAiB,EACvC,UAAU,EAAE,OAAO,GAClB,iBAAiB,CAKnB;AAED,eAAO,MAAM,iBAAiB,iBAAW,CAAC;AAE1C,eAAO,MAAM,cAAc,cAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAnnotationsLayerID.d.ts","sourceRoot":"","sources":["../../../../src/utils/getAnnotationsLayerID.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,SAC1B,kBAAkB,GAAG,UAAU,uBAStC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ut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ceRoot":"","sources":["../../../../src/utils/styleMap.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC;AAEF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,OAAO,WAAW,UAU/D;AA8ND,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCvB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapContext.d.ts","sourceRoot":"","sources":["../../../../src/web/MapContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,QAAA,MAAM,UAAU;;EAAyC,CAAC;AAE1D,eAAe,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../../../../src/web/components/Camera.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,cAAM,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC;IACnC,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC3C,CAAC;IACA,OAAO,EAAG,KAAK,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;IAE/C,MAAM,CAAC,WAAW;;OAAc;IAChC,MAAM,CAAC,iBAAiB,UAAM;IAE9B,iBAAiB;IAQjB,SAAS,CACP,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,OAAO,SAAI,EACX,iBAAiB,SAAM;IAQzB,MAAM;CAGP;AAED,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,eAAe,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../src/web/components/MapView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;GAEG;AACH,cAAM,OAAQ,SAAQ,KAAK,CAAC,SAAS,CACnC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;CAAE,EAC3C;IAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CACxB;IACC,KAAK;;MAAiB;IACtB,YAAY,EAAE,WAAW,GAAG,IAAI,CAAQ;IACxC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE1B,iBAAiB;IAcjB,MAAM;CAkBP;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Logger.d.ts","sourceRoot":"","sources":["../../../../../src/web/utils/Logger.ts"],"names":[],"mappings":"AACA,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AACF,aAAK,WAAW,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;AAChD,aAAK,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnE,cAAM,MAAM;IACV,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEtC,KAAK,EAAE,QAAQ,CAAU;IACzB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,YAAY,SAAK;IAEjB,MAAM,CAAC,cAAc;;IAWrB;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,WAAW;IAI9C;;;;OAIG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW;IAIvC;;;;;;;OAOG;IAEH;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ;IAIlC,KAAK;IAEL,IAAI;IAEJ,SAAS;IAIT,WAAW;IAIX,cAAc,CAAC,GAAG,EAAE,UAAU,GAAG,QAAQ;IAezC,KAAK,CAAC,GAAG,EAAE,UAAU;CAatB;AAID,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rnmapbox/maps",
3
3
  "description": "A Mapbox react native module for creating custom maps",
4
- "version": "10.1.0-beta.11",
4
+ "version": "10.1.0-beta.13",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "main": "lib/commonjs/index",
22
22
  "module": "lib/module/index",
23
- "types": "lib/typescript/index.d.ts",
23
+ "types": "lib/typescript/src/index.d.ts",
24
24
  "browser": "./src/index.web.js",
25
25
  "react-native": "src/index",
26
26
  "source": "src/index",
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "scripts": {
43
43
  "fetch:style:spec": ". ./scripts/download-style-spec.sh",
44
- "generate": "node ./scripts/autogenerate",
44
+ "generate": "node ./scripts/autogenerate.mjs",
45
45
  "test": "yarn lint && yarn unittest",
46
46
  "unittest": "yarn jest",
47
47
  "unittest:single": "yarn jest --testNamePattern",
@@ -84,7 +84,7 @@
84
84
  "@babel/runtime": "7.19.0",
85
85
  "@react-native/eslint-config": "^0.72.2",
86
86
  "@sinonjs/fake-timers": "^8.0.1",
87
- "@testing-library/react-native": "^11.0.0",
87
+ "@testing-library/react-native": "^12.0.0",
88
88
  "@types/debounce": "^1.2.1",
89
89
  "@types/mapbox-gl": "^2.7.5",
90
90
  "@types/react-native": ">=0.59.9",
@@ -102,18 +102,19 @@
102
102
  "expo": "^47.0.0",
103
103
  "expo-module-scripts": "^3.0.4",
104
104
  "husky": "^8.0.1",
105
- "jest": "27.5.1",
106
- "jest-cli": "27.5.1",
105
+ "jest": "29.7.0",
106
+ "jest-cli": "29.7.0",
107
107
  "lint-staged": "^12.1.2",
108
108
  "mapbox-gl": "^2.9.0",
109
109
  "metro-react-native-babel-preset": "0.71.1",
110
110
  "node-dir": "0.1.17",
111
111
  "prettier": "2.7.1",
112
112
  "react": "17.0.2",
113
- "react-docgen": "rnmapbox/react-docgen#rnmapbox-dist",
114
- "react-native": "0.67.0",
115
- "react-native-builder-bob": "^0.20.0",
113
+ "react-docgen": "rnmapbox/react-docgen#rnmapbox-dist-react-docgen-v6",
114
+ "react-native": "0.67",
115
+ "react-native-builder-bob": "^0.22.0",
116
116
  "react-test-renderer": "17.0.2",
117
+ "ts-node": "10.9.1",
117
118
  "typescript": "4.8.4"
118
119
  },
119
120
  "codegenConfig": {
@@ -124,22 +125,6 @@
124
125
  "javaPackageName": "com.rnmapbox.rnmbx"
125
126
  }
126
127
  },
127
- "jest": {
128
- "preset": "react-native",
129
- "collectCoverageFrom": [
130
- "src/**/*.js"
131
- ],
132
- "setupFiles": [
133
- "./setup-jest.js",
134
- "./__tests__/__mocks__/react-native.mock.js"
135
- ],
136
- "modulePathIgnorePatterns": [
137
- "example",
138
- "__tests__/__mocks__",
139
- "fixtures",
140
- "<rootDir>/lib/"
141
- ]
142
- },
143
128
  "lint-staged": {
144
129
  "*.{js,jsx,ts,tsx}": "eslint --fix"
145
130
  },
@@ -230,7 +230,10 @@ Pod::Spec.new do |s|
230
230
  sp.source_files = "ios/RNMBX/**/*.{h,m,mm,swift}"
231
231
  sp.private_header_files = 'ios/RNMBX/RNMBXFabricHelpers.h', 'ios/RNMBX/rnmapbox_maps-Swift.pre.h'
232
232
  if new_arch_enabled
233
+ sp.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
233
234
  install_modules_dependencies(sp)
235
+ dependencies_only_requiring_modular_headers = ["React-Fabric", "React-graphics", "React-utils", "React-debug"]
236
+ sp.dependencies = sp.dependencies.select { |d| !dependencies_only_requiring_modular_headers.include?(d.name) }.map {|d| [d.name, []]}.to_h
234
237
  end
235
238
  if ENV['USE_FRAMEWORKS'] || $RNMapboxMapsUseFrameworks
236
239
  $RNMapboxMaps._add_compiler_flags(sp, "-DRNMBX_USE_FRAMEWORKS=1")
package/setup-jest.js CHANGED
@@ -1,11 +1,23 @@
1
+ // copied from `react-16-node-hanging-test-fix` module. Without it we get jest hangs.
2
+ delete global.MessageChannel;
1
3
  import { NativeModules } from 'react-native';
2
4
 
5
+ jest.useFakeTimers('legacy');
6
+
3
7
  function keyMirror(keys) {
4
8
  const obj = {};
5
9
  keys.forEach((key) => (obj[key] = key));
6
10
  return obj;
7
11
  }
8
12
 
13
+ function nativeModule(properties) {
14
+ return {
15
+ addListener: jest.fn(),
16
+ removeListeners: jest.fn(),
17
+ ...properties,
18
+ };
19
+ }
20
+
9
21
  // Mock of what the native code puts on the JS object
10
22
  NativeModules.RNMBXModule = {
11
23
  // constants
@@ -90,7 +102,7 @@ NativeModules.RNMBXModule = {
90
102
  MapboxV10: true,
91
103
  };
92
104
 
93
- NativeModules.RNMBXOfflineModule = {
105
+ NativeModules.RNMBXOfflineModule = nativeModule({
94
106
  createPack: (packOptions) => {
95
107
  return Promise.resolve({
96
108
  bounds: packOptions.bounds,
@@ -106,7 +118,7 @@ NativeModules.RNMBXOfflineModule = {
106
118
  setPackObserver: () => Promise.resolve(),
107
119
  setTileCountLimit: jest.fn(),
108
120
  setProgressEventThrottle: jest.fn(),
109
- };
121
+ });
110
122
 
111
123
  NativeModules.RNMBXSnapshotModule = {
112
124
  takeSnap: () => {
@@ -114,11 +126,12 @@ NativeModules.RNMBXSnapshotModule = {
114
126
  },
115
127
  };
116
128
 
117
- NativeModules.RNMBXLocationModule = {
129
+ NativeModules.RNMBXLocationModule = nativeModule({
118
130
  getLastKnownLocation: jest.fn(),
119
131
  start: jest.fn(),
120
132
  pause: jest.fn(),
121
- };
133
+ stop: jest.fn(),
134
+ });
122
135
 
123
136
  NativeModules.RNMBXMapViewModule = {
124
137
  takeSnap: jest.fn(),
@@ -136,6 +149,8 @@ NativeModules.RNMBXMapViewModule = {
136
149
  querySourceFeatures: jest.fn(),
137
150
  };
138
151
 
152
+ NativeModules.RNMBXLogging = nativeModule({});
153
+
139
154
  // Mock for global AbortController
140
155
  global.AbortController = class {
141
156
  signal = 'test-signal';
@@ -69,6 +69,67 @@ export type RegionPayload = {
69
69
  pitch: number;
70
70
  };
71
71
 
72
+ export type GestureSettings = {
73
+ /**
74
+ * Whether double tapping the map with one touch results in a zoom-in animation.
75
+ */
76
+ doubleTapToZoomInEnabled?: boolean;
77
+ /**
78
+ * Whether single tapping the map with two touches results in a zoom-out animation.
79
+ */
80
+ doubleTouchToZoomOutEnabled?: boolean;
81
+ /**
82
+ * Whether pan/scroll is enabled for the pinch gesture.
83
+ */
84
+ pinchPanEnabled?: boolean;
85
+ /**
86
+ * Whether zoom is enabled for the pinch gesture.
87
+ */
88
+ pinchZoomEnabled?: boolean;
89
+ /**
90
+ * Whether a deceleration animation following a pinch-zoom gesture is enabled. True by default.
91
+ * (Android only)
92
+ */
93
+ pinchZoomDecelerationEnabled?: boolean;
94
+ /**
95
+ * Whether the pitch gesture is enabled.
96
+ */
97
+ pitchEnabled?: boolean;
98
+ /**
99
+ * Whether the quick zoom gesture is enabled.
100
+ */
101
+ quickZoomEnabled?: boolean;
102
+ /**
103
+ * Whether the rotate gesture is enabled.
104
+ */
105
+ rotateEnabled?: boolean;
106
+ /**
107
+ * Whether a deceleration animation following a rotate gesture is enabled. True by default.
108
+ * (Android only)
109
+ */
110
+ rotateDecelerationEnabled?: boolean;
111
+ /**
112
+ * Whether the single-touch pan/scroll gesture is enabled.
113
+ */
114
+ panEnabled?: boolean;
115
+ /**
116
+ * A constant factor that determines how quickly pan deceleration animations happen. Multiplied with the velocity vector once per millisecond during deceleration animations.
117
+ *
118
+ * On iOS Defaults to UIScrollView.DecelerationRate.normal.rawValue
119
+ * On android set to 0 to disable deceleration, and non zero to enabled it.
120
+ */
121
+ panDecelerationFactor?: number;
122
+ /**
123
+ * Whether rotation is enabled for the pinch zoom gesture.
124
+ */
125
+ simultaneousRotateAndPinchZoomEnabled?: boolean;
126
+ /**
127
+ * The amount by which the zoom level increases or decreases during a double-tap-to-zoom-in or double-touch-to-zoom-out gesture. 1.0 by default. Must be positive.
128
+ * (Android only)
129
+ */
130
+ zoomAnimationAmount?: number;
131
+ };
132
+
72
133
  /**
73
134
  * v10 only
74
135
  */
@@ -244,6 +305,11 @@ type Props = ViewProps & {
244
305
  */
245
306
  localizeLabels?: LocalizeLabels;
246
307
 
308
+ /**
309
+ * Gesture configuration allows to control the user touch interaction.
310
+ */
311
+ gestureSettings?: GestureSettings;
312
+
247
313
  /**
248
314
  * Map press listener, gets called when a user presses the map
249
315
  */
@@ -400,7 +466,6 @@ class MapView extends NativeBridgeComponent(
400
466
  NATIVE_MODULE_NAME,
401
467
  ) {
402
468
  static defaultProps: Props = {
403
- projection: 'mercator',
404
469
  scrollEnabled: true,
405
470
  pitchEnabled: true,
406
471
  rotateEnabled: true,
@@ -4,19 +4,22 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  import type { UnsafeMixed } from './codegenUtils';
6
6
 
7
+ // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
8
+ type OptionalProp<T> = UnsafeMixed<T>;
9
+
7
10
  export interface NativeProps extends ViewProps {
8
11
  id: UnsafeMixed<string>;
9
12
  sourceID: UnsafeMixed<string>;
10
- existing: UnsafeMixed<boolean>;
13
+ existing?: OptionalProp<boolean>;
11
14
  filter: UnsafeMixed<any[]>;
12
15
 
13
- aboveLayerID: UnsafeMixed<string>;
14
- belowLayerID: UnsafeMixed<string>;
15
- layerIndex: UnsafeMixed<Int32>;
16
+ aboveLayerID?: OptionalProp<string>;
17
+ belowLayerID?: OptionalProp<string>;
18
+ layerIndex?: OptionalProp<Int32>;
16
19
  reactStyle: UnsafeMixed<any>;
17
20
 
18
- maxZoomLevel: UnsafeMixed<Double>;
19
- minZoomLevel: UnsafeMixed<Double>;
21
+ maxZoomLevel?: OptionalProp<Double>;
22
+ minZoomLevel?: OptionalProp<Double>;
20
23
  }
21
24
 
22
25
  export default codegenNativeComponent<NativeProps>(
@@ -8,6 +8,9 @@ import {
8
8
 
9
9
  import type { NativeCameraStop, UnsafeMixed } from './codegenUtils';
10
10
 
11
+ // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
12
+ type OptionalProp<T> = UnsafeMixed<T>;
13
+
11
14
  type UserTrackingModeChangeEventType = {
12
15
  type: string;
13
16
  payloadRenamed: {
@@ -18,21 +21,21 @@ type UserTrackingModeChangeEventType = {
18
21
 
19
22
  export interface NativeProps extends ViewProps {
20
23
  maxBounds?: UnsafeMixed<string | null>;
21
- animationDuration?: UnsafeMixed<Double>;
22
- animationMode?: UnsafeMixed<string>;
24
+ animationDuration?: OptionalProp<Double>;
25
+ animationMode?: OptionalProp<string>;
23
26
  defaultStop?: UnsafeMixed<NativeCameraStop>;
24
- userTrackingMode?: UnsafeMixed<Int32>;
27
+ userTrackingMode?: OptionalProp<Int32>;
25
28
 
26
- followUserLocation?: UnsafeMixed<boolean>;
27
- followUserMode?: UnsafeMixed<string>;
28
- followZoomLevel?: UnsafeMixed<Double>;
29
- followPitch?: UnsafeMixed<Double>;
30
- followHeading?: UnsafeMixed<Double>;
29
+ followUserLocation?: OptionalProp<boolean>;
30
+ followUserMode?: OptionalProp<string>;
31
+ followZoomLevel?: OptionalProp<Double>;
32
+ followPitch?: OptionalProp<Double>;
33
+ followHeading?: OptionalProp<Double>;
31
34
  followPadding?: UnsafeMixed<any>;
32
35
 
33
- zoomLevel?: UnsafeMixed<Double>;
34
- maxZoomLevel?: UnsafeMixed<Double>;
35
- minZoomLevel?: UnsafeMixed<Double>;
36
+ zoomLevel?: OptionalProp<Double>;
37
+ maxZoomLevel?: OptionalProp<Double>;
38
+ minZoomLevel?: OptionalProp<Double>;
36
39
  stop?: UnsafeMixed<NativeCameraStop>;
37
40
 
38
41
  onUserTrackingModeChange?: DirectEventHandler<UserTrackingModeChangeEventType>;
@@ -4,20 +4,23 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  import type { UnsafeMixed } from './codegenUtils';
6
6
 
7
+ // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
8
+ type OptionalProp<T> = UnsafeMixed<T>;
9
+
7
10
  export interface NativeProps extends ViewProps {
8
11
  id: UnsafeMixed<string>;
9
- sourceID: UnsafeMixed<string>;
10
- existing: UnsafeMixed<boolean>;
12
+ sourceID: OptionalProp<string>;
13
+ existing: OptionalProp<boolean>;
11
14
  filter: UnsafeMixed<any[]>;
12
15
 
13
- aboveLayerID: UnsafeMixed<string>;
14
- belowLayerID: UnsafeMixed<string>;
15
- layerIndex: UnsafeMixed<Int32>;
16
+ aboveLayerID: OptionalProp<string>;
17
+ belowLayerID: OptionalProp<string>;
18
+ layerIndex: OptionalProp<Int32>;
16
19
  reactStyle: UnsafeMixed<any>;
17
20
 
18
- maxZoomLevel: UnsafeMixed<Double>;
19
- minZoomLevel: UnsafeMixed<Double>;
20
- sourceLayerID: UnsafeMixed<string>;
21
+ maxZoomLevel: OptionalProp<Double>;
22
+ minZoomLevel: OptionalProp<Double>;
23
+ sourceLayerID: OptionalProp<string>;
21
24
  }
22
25
 
23
26
  export default codegenNativeComponent<NativeProps>(
@@ -4,20 +4,23 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  import type { UnsafeMixed } from './codegenUtils';
6
6
 
7
+ // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
8
+ type OptionalProp<T> = UnsafeMixed<T>;
9
+
7
10
  export interface NativeProps extends ViewProps {
8
- id: UnsafeMixed<string>;
9
- sourceID: UnsafeMixed<string>;
10
- existing: UnsafeMixed<boolean>;
11
+ id?: UnsafeMixed<string>;
12
+ sourceID?: OptionalProp<string>;
13
+ existing?: OptionalProp<boolean>;
11
14
  filter: UnsafeMixed<any[]>;
12
15
 
13
- aboveLayerID: UnsafeMixed<string>;
14
- belowLayerID: UnsafeMixed<string>;
15
- layerIndex: UnsafeMixed<Int32>;
16
+ aboveLayerID?: OptionalProp<string>;
17
+ belowLayerID?: OptionalProp<string>;
18
+ layerIndex?: OptionalProp<Int32>;
16
19
  reactStyle: UnsafeMixed<any>;
17
20
 
18
- maxZoomLevel: UnsafeMixed<Double>;
19
- minZoomLevel: UnsafeMixed<Double>;
20
- sourceLayerID: UnsafeMixed<string>;
21
+ maxZoomLevel?: OptionalProp<Double>;
22
+ minZoomLevel?: OptionalProp<Double>;
23
+ sourceLayerID?: OptionalProp<string>;
21
24
  }
22
25
 
23
26
  export default codegenNativeComponent<NativeProps>(
@@ -4,20 +4,23 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  import type { UnsafeMixed } from './codegenUtils';
6
6
 
7
+ // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
8
+ type OptionalProp<T> = UnsafeMixed<T>;
9
+
7
10
  export interface NativeProps extends ViewProps {
8
11
  id: UnsafeMixed<string>;
9
- sourceID: UnsafeMixed<string>;
10
- existing: UnsafeMixed<boolean>;
12
+ sourceID?: OptionalProp<string>;
13
+ existing?: OptionalProp<boolean>;
11
14
  filter: UnsafeMixed<any[]>;
12
15
 
13
- aboveLayerID: UnsafeMixed<string>;
14
- belowLayerID: UnsafeMixed<string>;
15
- layerIndex: UnsafeMixed<Int32>;
16
+ aboveLayerID?: OptionalProp<string>;
17
+ belowLayerID?: OptionalProp<string>;
18
+ layerIndex?: OptionalProp<Int32>;
16
19
  reactStyle: UnsafeMixed<any>;
17
20
 
18
- maxZoomLevel: UnsafeMixed<Double>;
19
- minZoomLevel: UnsafeMixed<Double>;
20
- sourceLayerID: UnsafeMixed<string>;
21
+ maxZoomLevel?: OptionalProp<Double>;
22
+ minZoomLevel?: OptionalProp<Double>;
23
+ sourceLayerID?: OptionalProp<string>;
21
24
  }
22
25
 
23
26
  export default codegenNativeComponent<NativeProps>(
@@ -4,20 +4,23 @@ import { Double, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  import type { UnsafeMixed } from './codegenUtils';
6
6
 
7
+ // see https://github.com/rnmapbox/maps/wiki/FabricOptionalProp
8
+ type OptionalProp<T> = UnsafeMixed<T>;
9
+
7
10
  export interface NativeProps extends ViewProps {
8
- id: UnsafeMixed<string>;
9
- sourceID: UnsafeMixed<string>;
10
- existing: UnsafeMixed<boolean>;
11
+ id: OptionalProp<string>;
12
+ sourceID?: OptionalProp<string>;
13
+ existing?: OptionalProp<boolean>;
11
14
  filter: UnsafeMixed<any[]>;
12
15
 
13
- aboveLayerID: UnsafeMixed<string>;
14
- belowLayerID: UnsafeMixed<string>;
15
- layerIndex: UnsafeMixed<Int32>;
16
+ aboveLayerID?: OptionalProp<string>;
17
+ belowLayerID?: OptionalProp<string>;
18
+ layerIndex?: OptionalProp<Int32>;
16
19
  reactStyle: UnsafeMixed<any>;
17
20
 
18
- maxZoomLevel: UnsafeMixed<Double>;
19
- minZoomLevel: UnsafeMixed<Double>;
20
- sourceLayerID: UnsafeMixed<string>;
21
+ maxZoomLevel?: OptionalProp<Double>;
22
+ minZoomLevel?: OptionalProp<Double>;
23
+ sourceLayerID?: OptionalProp<string>;
21
24
  }
22
25
 
23
26
  export default codegenNativeComponent<NativeProps>(