@maplibre/maplibre-react-native 11.0.0-alpha.7 → 11.0.0-alpha.9

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 (338) hide show
  1. package/MapLibreReactNative.podspec +1 -1
  2. package/android/build.gradle +0 -3
  3. package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.kt +43 -0
  4. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEvent.kt +24 -0
  5. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEventEmitter.kt +71 -0
  6. package/android/src/main/java/org/maplibre/reactnative/components/annotation/MLRNPointAnnotation.java +1 -1
  7. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraStop.kt +203 -0
  8. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateItem.kt +109 -0
  9. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateQueue.kt +60 -0
  10. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.kt +409 -0
  11. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCameraManager.kt +69 -0
  12. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCameraModule.kt +34 -0
  13. package/android/src/main/java/org/maplibre/reactnative/components/camera/constants/CameraEasing.kt +24 -0
  14. package/android/src/main/java/org/maplibre/reactnative/components/images/MLRNImages.java +1 -2
  15. package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +1 -1
  16. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapView.kt +23 -0
  17. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.kt +23 -0
  18. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.kt +1338 -0
  19. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.kt +187 -0
  20. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewModule.kt +159 -0
  21. package/android/src/main/java/org/maplibre/reactnative/components/mapview/helpers/CameraChangeTracker.kt +26 -0
  22. package/android/src/main/java/org/maplibre/reactnative/components/mapview/helpers/LayerSourceInfo.kt +74 -0
  23. package/android/src/main/java/org/maplibre/reactnative/components/styles/layers/MLRNLayer.java +1 -5
  24. package/android/src/main/java/org/maplibre/reactnative/components/styles/light/MLRNLight.java +1 -6
  25. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +2 -9
  26. package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNSource.java +1 -1
  27. package/android/src/main/java/org/maplibre/reactnative/events/AbstractEvent.java +2 -5
  28. package/android/src/main/java/org/maplibre/reactnative/events/MapChangeEvent.kt +18 -0
  29. package/android/src/main/java/org/maplibre/reactnative/events/MapClickEvent.java +4 -0
  30. package/android/src/main/java/org/maplibre/reactnative/events/MapPressEvent.kt +27 -0
  31. package/android/src/main/java/org/maplibre/reactnative/events/TrackUserLocationChangeEvent.kt +24 -0
  32. package/android/src/main/java/org/maplibre/reactnative/events/constants/EventKeys.java +0 -1
  33. package/android/src/main/java/org/maplibre/reactnative/events/constants/EventTypes.java +0 -19
  34. package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +1 -1
  35. package/android/src/main/java/org/maplibre/reactnative/location/TrackUserLocationMode.kt +43 -0
  36. package/android/src/main/java/org/maplibre/reactnative/location/{UserTrackingState.java → TrackUserLocationState.java} +1 -1
  37. package/android/src/main/java/org/maplibre/reactnative/location/UserLocation.java +1 -1
  38. package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +1 -49
  39. package/android/src/main/java/org/maplibre/reactnative/utils/ConvertUtils.java +2 -9
  40. package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.kt +322 -0
  41. package/android/src/main/java/org/maplibre/reactnative/utils/ReactTagResolver.kt +85 -0
  42. package/ios/MLRNCallout.h +1 -1
  43. package/ios/MLRNEvent.m +3 -1
  44. package/ios/MLRNEventTypes.h +10 -31
  45. package/ios/MLRNEventTypes.m +10 -30
  46. package/ios/MLRNImages.h +1 -1
  47. package/ios/MLRNImages.m +1 -1
  48. package/ios/MLRNLayer.h +1 -1
  49. package/ios/MLRNLayer.m +2 -2
  50. package/ios/MLRNLight.h +2 -1
  51. package/ios/MLRNLocationModule.m +2 -2
  52. package/ios/MLRNMapTouchEvent.h +2 -1
  53. package/ios/MLRNMapTouchEvent.m +12 -10
  54. package/ios/MLRNModule.m +5 -52
  55. package/ios/MLRNNativeUserLocation.m +0 -1
  56. package/ios/MLRNOfflineModule.h +2 -2
  57. package/ios/MLRNOfflineModule.m +9 -9
  58. package/ios/MLRNPointAnnotation.h +1 -1
  59. package/ios/MLRNShapeSource.h +1 -1
  60. package/ios/MLRNSource.h +3 -1
  61. package/ios/MLRNStyle.m +20 -20
  62. package/ios/MLRNUtils.h +17 -2
  63. package/ios/MLRNUtils.m +25 -2
  64. package/ios/components/camera/CameraEasing.h +8 -0
  65. package/ios/{CameraStop.h → components/camera/CameraStop.h} +10 -6
  66. package/ios/components/camera/CameraStop.m +75 -0
  67. package/ios/{CameraUpdateItem.m → components/camera/CameraUpdateItem.m} +45 -46
  68. package/ios/components/camera/MLRNCamera.h +26 -0
  69. package/ios/components/camera/MLRNCamera.m +195 -0
  70. package/ios/components/camera/MLRNCameraComponentView.h +18 -0
  71. package/ios/components/camera/MLRNCameraComponentView.mm +192 -0
  72. package/ios/components/camera/MLRNCameraManager.h +11 -0
  73. package/ios/components/camera/MLRNCameraManager.m +20 -0
  74. package/ios/components/camera/MLRNCameraModule.h +4 -0
  75. package/ios/components/camera/MLRNCameraModule.mm +111 -0
  76. package/ios/{MLRNMapView.h → components/map-view/MLRNMapView.h} +42 -20
  77. package/ios/components/map-view/MLRNMapView.m +809 -0
  78. package/ios/components/map-view/MLRNMapViewComponentView.h +18 -0
  79. package/ios/components/map-view/MLRNMapViewComponentView.mm +400 -0
  80. package/ios/components/map-view/MLRNMapViewManager.h +70 -0
  81. package/ios/components/map-view/MLRNMapViewManager.m +163 -0
  82. package/ios/components/map-view/MLRNMapViewModule.h +4 -0
  83. package/ios/components/map-view/MLRNMapViewModule.mm +249 -0
  84. package/ios/{MLRNSnapshotModule → modules/snapshot}/MLRNSnapshotModule.mm +0 -1
  85. package/lib/commonjs/MLRNModule.js +1 -3
  86. package/lib/commonjs/MLRNModule.js.map +1 -1
  87. package/lib/commonjs/components/Annotation.js +1 -13
  88. package/lib/commonjs/components/Annotation.js.map +1 -1
  89. package/lib/commonjs/components/Images.js.map +1 -1
  90. package/lib/commonjs/components/ShapeSource.js +2 -21
  91. package/lib/commonjs/components/ShapeSource.js.map +1 -1
  92. package/lib/commonjs/components/VectorSource.js +3 -26
  93. package/lib/commonjs/components/VectorSource.js.map +1 -1
  94. package/lib/commonjs/components/camera/Camera.js +97 -0
  95. package/lib/commonjs/components/camera/Camera.js.map +1 -0
  96. package/lib/commonjs/components/camera/CameraNativeComponent.ts +61 -0
  97. package/lib/commonjs/components/camera/NativeCameraModule.js +11 -0
  98. package/lib/commonjs/components/camera/NativeCameraModule.js.map +1 -0
  99. package/lib/commonjs/components/map-view/MapView.js +115 -0
  100. package/lib/commonjs/components/map-view/MapView.js.map +1 -0
  101. package/lib/commonjs/components/map-view/MapViewNativeComponent.ts +96 -0
  102. package/lib/commonjs/components/map-view/NativeMapViewModule.js +9 -0
  103. package/lib/commonjs/components/map-view/NativeMapViewModule.js.map +1 -0
  104. package/lib/commonjs/index.js +246 -4
  105. package/lib/commonjs/index.js.map +1 -1
  106. package/lib/commonjs/modules/snapshot/NativeSnapshotModule.js +2 -2
  107. package/lib/commonjs/modules/snapshot/NativeSnapshotModule.js.map +1 -1
  108. package/lib/commonjs/modules/snapshot/SnapshotManager.js +3 -2
  109. package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -1
  110. package/lib/commonjs/types/Bounds.js +2 -0
  111. package/lib/commonjs/types/{OnPressEvent.js.map → Bounds.js.map} +1 -1
  112. package/lib/commonjs/types/PressEvent.js +2 -0
  113. package/lib/{module/types/OnPressEvent.js.map → commonjs/types/PressEvent.js.map} +1 -1
  114. package/lib/commonjs/types/ViewPadding.js +2 -0
  115. package/lib/commonjs/types/{MapLibreRNEvent.js.map → ViewPadding.js.map} +1 -1
  116. package/lib/commonjs/types/codegen/UnsafeMixed.js +2 -0
  117. package/lib/commonjs/types/codegen/UnsafeMixed.js.map +1 -0
  118. package/lib/commonjs/utils/index.js +0 -11
  119. package/lib/commonjs/utils/index.js.map +1 -1
  120. package/lib/module/MLRNModule.js +0 -1
  121. package/lib/module/MLRNModule.js.map +1 -1
  122. package/lib/module/components/Annotation.js +2 -14
  123. package/lib/module/components/Annotation.js.map +1 -1
  124. package/lib/module/components/Images.js.map +1 -1
  125. package/lib/module/components/ShapeSource.js +3 -22
  126. package/lib/module/components/ShapeSource.js.map +1 -1
  127. package/lib/module/components/VectorSource.js +4 -27
  128. package/lib/module/components/VectorSource.js.map +1 -1
  129. package/lib/module/components/camera/Camera.js +92 -0
  130. package/lib/module/components/camera/Camera.js.map +1 -0
  131. package/lib/module/components/camera/CameraNativeComponent.ts +61 -0
  132. package/lib/module/components/camera/NativeCameraModule.js +10 -0
  133. package/lib/module/components/camera/NativeCameraModule.js.map +1 -0
  134. package/lib/module/components/map-view/MapView.js +110 -0
  135. package/lib/module/components/map-view/MapView.js.map +1 -0
  136. package/lib/module/components/map-view/MapViewNativeComponent.ts +96 -0
  137. package/lib/module/components/map-view/NativeMapViewModule.js +5 -0
  138. package/lib/module/components/map-view/NativeMapViewModule.js.map +1 -0
  139. package/lib/module/index.js +30 -1
  140. package/lib/module/index.js.map +1 -1
  141. package/lib/module/modules/snapshot/NativeSnapshotModule.js +1 -1
  142. package/lib/module/modules/snapshot/NativeSnapshotModule.js.map +1 -1
  143. package/lib/module/modules/snapshot/SnapshotManager.js +1 -1
  144. package/lib/module/modules/snapshot/SnapshotManager.js.map +1 -1
  145. package/lib/module/types/Bounds.js +2 -0
  146. package/lib/module/types/{MapLibreRNEvent.js.map → Bounds.js.map} +1 -1
  147. package/lib/module/types/PressEvent.js +2 -0
  148. package/lib/module/types/PressEvent.js.map +1 -0
  149. package/lib/module/types/ViewPadding.js +2 -0
  150. package/lib/module/types/ViewPadding.js.map +1 -0
  151. package/lib/module/types/codegen/UnsafeMixed.js +2 -0
  152. package/lib/module/types/codegen/UnsafeMixed.js.map +1 -0
  153. package/lib/module/utils/index.js +0 -9
  154. package/lib/module/utils/index.js.map +1 -1
  155. package/lib/typescript/commonjs/src/MLRNModule.d.ts +1 -7
  156. package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/src/components/Annotation.d.ts +3 -3
  158. package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/src/components/Images.d.ts +1 -2
  160. package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
  161. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +2 -5
  162. package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
  163. package/lib/typescript/commonjs/src/components/VectorSource.d.ts +3 -2
  164. package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts +180 -0
  166. package/lib/typescript/commonjs/src/components/camera/Camera.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts +37 -0
  168. package/lib/typescript/commonjs/src/components/camera/CameraNativeComponent.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts +27 -0
  170. package/lib/typescript/commonjs/src/components/camera/NativeCameraModule.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts +323 -0
  172. package/lib/typescript/commonjs/src/components/map-view/MapView.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/src/components/map-view/MapViewNativeComponent.d.ts +69 -0
  174. package/lib/typescript/commonjs/src/components/map-view/MapViewNativeComponent.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/src/components/map-view/NativeMapViewModule.d.ts +45 -0
  176. package/lib/typescript/commonjs/src/components/map-view/NativeMapViewModule.d.ts.map +1 -0
  177. package/lib/typescript/commonjs/src/index.d.ts +41 -1
  178. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/src/modules/snapshot/NativeSnapshotModule.d.ts +2 -1
  180. package/lib/typescript/commonjs/src/modules/snapshot/NativeSnapshotModule.d.ts.map +1 -1
  181. package/lib/typescript/commonjs/src/types/Bounds.d.ts +2 -0
  182. package/lib/typescript/commonjs/src/types/Bounds.d.ts.map +1 -0
  183. package/lib/typescript/commonjs/src/types/PressEvent.d.ts +16 -0
  184. package/lib/typescript/commonjs/src/types/PressEvent.d.ts.map +1 -0
  185. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts +7 -0
  186. package/lib/typescript/commonjs/src/types/ViewPadding.d.ts.map +1 -0
  187. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts +10 -0
  188. package/lib/typescript/commonjs/src/types/codegen/UnsafeMixed.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/src/utils/index.d.ts +1 -3
  190. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  191. package/lib/typescript/module/src/MLRNModule.d.ts +1 -7
  192. package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
  193. package/lib/typescript/module/src/components/Annotation.d.ts +3 -3
  194. package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
  195. package/lib/typescript/module/src/components/Images.d.ts +1 -2
  196. package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
  197. package/lib/typescript/module/src/components/ShapeSource.d.ts +2 -5
  198. package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
  199. package/lib/typescript/module/src/components/VectorSource.d.ts +3 -2
  200. package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
  201. package/lib/typescript/module/src/components/camera/Camera.d.ts +180 -0
  202. package/lib/typescript/module/src/components/camera/Camera.d.ts.map +1 -0
  203. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts +37 -0
  204. package/lib/typescript/module/src/components/camera/CameraNativeComponent.d.ts.map +1 -0
  205. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts +27 -0
  206. package/lib/typescript/module/src/components/camera/NativeCameraModule.d.ts.map +1 -0
  207. package/lib/typescript/module/src/components/map-view/MapView.d.ts +323 -0
  208. package/lib/typescript/module/src/components/map-view/MapView.d.ts.map +1 -0
  209. package/lib/typescript/module/src/components/map-view/MapViewNativeComponent.d.ts +69 -0
  210. package/lib/typescript/module/src/components/map-view/MapViewNativeComponent.d.ts.map +1 -0
  211. package/lib/typescript/module/src/components/map-view/NativeMapViewModule.d.ts +45 -0
  212. package/lib/typescript/module/src/components/map-view/NativeMapViewModule.d.ts.map +1 -0
  213. package/lib/typescript/module/src/index.d.ts +41 -1
  214. package/lib/typescript/module/src/index.d.ts.map +1 -1
  215. package/lib/typescript/module/src/modules/snapshot/NativeSnapshotModule.d.ts +2 -1
  216. package/lib/typescript/module/src/modules/snapshot/NativeSnapshotModule.d.ts.map +1 -1
  217. package/lib/typescript/module/src/types/Bounds.d.ts +2 -0
  218. package/lib/typescript/module/src/types/Bounds.d.ts.map +1 -0
  219. package/lib/typescript/module/src/types/PressEvent.d.ts +16 -0
  220. package/lib/typescript/module/src/types/PressEvent.d.ts.map +1 -0
  221. package/lib/typescript/module/src/types/ViewPadding.d.ts +7 -0
  222. package/lib/typescript/module/src/types/ViewPadding.d.ts.map +1 -0
  223. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts +10 -0
  224. package/lib/typescript/module/src/types/codegen/UnsafeMixed.d.ts.map +1 -0
  225. package/lib/typescript/module/src/utils/index.d.ts +1 -3
  226. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  227. package/package.json +38 -28
  228. package/src/MLRNModule.ts +0 -10
  229. package/src/components/Annotation.tsx +8 -23
  230. package/src/components/Images.tsx +2 -4
  231. package/src/components/ShapeSource.tsx +18 -31
  232. package/src/components/VectorSource.tsx +5 -28
  233. package/src/components/camera/Camera.tsx +311 -0
  234. package/src/components/camera/CameraNativeComponent.ts +61 -0
  235. package/src/components/camera/NativeCameraModule.ts +39 -0
  236. package/src/components/map-view/MapView.tsx +582 -0
  237. package/src/components/map-view/MapViewNativeComponent.ts +96 -0
  238. package/src/components/map-view/NativeMapViewModule.ts +83 -0
  239. package/src/index.ts +86 -1
  240. package/src/modules/snapshot/NativeSnapshotModule.ts +1 -2
  241. package/src/modules/snapshot/SnapshotManager.ts +1 -1
  242. package/src/types/Bounds.ts +1 -0
  243. package/src/types/PressEvent.ts +19 -0
  244. package/src/types/ViewPadding.ts +6 -0
  245. package/src/types/codegen/UnsafeMixed.ts +9 -0
  246. package/src/utils/index.ts +1 -14
  247. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEvent.java +0 -35
  248. package/android/src/main/java/org/maplibre/reactnative/components/AbstractEventEmitter.java +0 -80
  249. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraStop.java +0 -245
  250. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateItem.java +0 -121
  251. package/android/src/main/java/org/maplibre/reactnative/components/camera/CameraUpdateQueue.java +0 -68
  252. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +0 -519
  253. package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCameraManager.java +0 -101
  254. package/android/src/main/java/org/maplibre/reactnative/components/camera/constants/CameraMode.java +0 -18
  255. package/android/src/main/java/org/maplibre/reactnative/components/mapview/LayerSourceInfo.java +0 -59
  256. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapView.java +0 -13
  257. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNAndroidTextureMapViewManager.java +0 -27
  258. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +0 -1521
  259. package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +0 -342
  260. package/android/src/main/java/org/maplibre/reactnative/components/mapview/helpers/CameraChangeTracker.java +0 -37
  261. package/android/src/main/java/org/maplibre/reactnative/events/MapChangeEvent.java +0 -43
  262. package/android/src/main/java/org/maplibre/reactnative/events/MapUserTrackingModeEvent.java +0 -32
  263. package/android/src/main/java/org/maplibre/reactnative/location/UserLocationVerticalAlignment.java +0 -7
  264. package/android/src/main/java/org/maplibre/reactnative/location/UserTrackingMode.java +0 -59
  265. package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +0 -310
  266. package/ios/CameraMode.h +0 -10
  267. package/ios/CameraMode.m +0 -10
  268. package/ios/CameraStop.m +0 -73
  269. package/ios/MLRNCamera.h +0 -29
  270. package/ios/MLRNCamera.m +0 -236
  271. package/ios/MLRNCameraManager.h +0 -5
  272. package/ios/MLRNCameraManager.m +0 -39
  273. package/ios/MLRNMapView.m +0 -497
  274. package/ios/MLRNMapViewManager.h +0 -9
  275. package/ios/MLRNMapViewManager.m +0 -604
  276. package/lib/commonjs/MapLibreRN.js +0 -266
  277. package/lib/commonjs/MapLibreRN.js.map +0 -1
  278. package/lib/commonjs/components/Camera.js +0 -333
  279. package/lib/commonjs/components/Camera.js.map +0 -1
  280. package/lib/commonjs/components/MapView.js +0 -449
  281. package/lib/commonjs/components/MapView.js.map +0 -1
  282. package/lib/commonjs/hooks/useNativeRef.js +0 -14
  283. package/lib/commonjs/hooks/useNativeRef.js.map +0 -1
  284. package/lib/commonjs/types/CameraMode.js +0 -14
  285. package/lib/commonjs/types/CameraMode.js.map +0 -1
  286. package/lib/commonjs/types/MapLibreRNEvent.js +0 -6
  287. package/lib/commonjs/types/OnPressEvent.js +0 -2
  288. package/lib/module/MapLibreRN.js +0 -33
  289. package/lib/module/MapLibreRN.js.map +0 -1
  290. package/lib/module/components/Camera.js +0 -328
  291. package/lib/module/components/Camera.js.map +0 -1
  292. package/lib/module/components/MapView.js +0 -444
  293. package/lib/module/components/MapView.js.map +0 -1
  294. package/lib/module/hooks/useNativeRef.js +0 -10
  295. package/lib/module/hooks/useNativeRef.js.map +0 -1
  296. package/lib/module/types/CameraMode.js +0 -10
  297. package/lib/module/types/CameraMode.js.map +0 -1
  298. package/lib/module/types/MapLibreRNEvent.js +0 -4
  299. package/lib/module/types/OnPressEvent.js +0 -2
  300. package/lib/typescript/commonjs/src/MapLibreRN.d.ts +0 -41
  301. package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +0 -1
  302. package/lib/typescript/commonjs/src/components/Camera.d.ts +0 -134
  303. package/lib/typescript/commonjs/src/components/Camera.d.ts.map +0 -1
  304. package/lib/typescript/commonjs/src/components/MapView.d.ts +0 -223
  305. package/lib/typescript/commonjs/src/components/MapView.d.ts.map +0 -1
  306. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +0 -8
  307. package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +0 -1
  308. package/lib/typescript/commonjs/src/types/CameraMode.d.ts +0 -7
  309. package/lib/typescript/commonjs/src/types/CameraMode.d.ts.map +0 -1
  310. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts +0 -6
  311. package/lib/typescript/commonjs/src/types/MapLibreRNEvent.d.ts.map +0 -1
  312. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts +0 -12
  313. package/lib/typescript/commonjs/src/types/OnPressEvent.d.ts.map +0 -1
  314. package/lib/typescript/module/src/MapLibreRN.d.ts +0 -41
  315. package/lib/typescript/module/src/MapLibreRN.d.ts.map +0 -1
  316. package/lib/typescript/module/src/components/Camera.d.ts +0 -134
  317. package/lib/typescript/module/src/components/Camera.d.ts.map +0 -1
  318. package/lib/typescript/module/src/components/MapView.d.ts +0 -223
  319. package/lib/typescript/module/src/components/MapView.d.ts.map +0 -1
  320. package/lib/typescript/module/src/hooks/useNativeRef.d.ts +0 -8
  321. package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +0 -1
  322. package/lib/typescript/module/src/types/CameraMode.d.ts +0 -7
  323. package/lib/typescript/module/src/types/CameraMode.d.ts.map +0 -1
  324. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts +0 -6
  325. package/lib/typescript/module/src/types/MapLibreRNEvent.d.ts.map +0 -1
  326. package/lib/typescript/module/src/types/OnPressEvent.d.ts +0 -12
  327. package/lib/typescript/module/src/types/OnPressEvent.d.ts.map +0 -1
  328. package/src/MapLibreRN.ts +0 -75
  329. package/src/components/Camera.tsx +0 -568
  330. package/src/components/MapView.tsx +0 -838
  331. package/src/hooks/useNativeRef.ts +0 -14
  332. package/src/types/CameraMode.ts +0 -6
  333. package/src/types/MapLibreRNEvent.ts +0 -7
  334. package/src/types/OnPressEvent.ts +0 -11
  335. /package/ios/{CameraUpdateItem.h → components/camera/CameraUpdateItem.h} +0 -0
  336. /package/ios/{CameraUpdateQueue.h → components/camera/CameraUpdateQueue.h} +0 -0
  337. /package/ios/{CameraUpdateQueue.m → components/camera/CameraUpdateQueue.m} +0 -0
  338. /package/ios/{MLRNSnapshotModule → modules/snapshot}/MLRNSnapshotModule.h +0 -0
@@ -1,18 +1,22 @@
1
- @import MapLibre;
1
+ #import <MapLibre/MapLibre.h>
2
+
3
+ #import "CameraEasing.h"
2
4
  #import "MLRNCamera.h"
3
5
 
4
6
  @interface CameraStop : NSObject
5
7
 
6
- @property (nonatomic, strong) NSNumber *pitch;
7
- @property (nonatomic, strong) NSNumber *heading;
8
+ @property (nonatomic, assign) CLLocationCoordinate2D center;
9
+
8
10
  @property (nonatomic, strong) NSNumber *zoom;
9
- @property (nonatomic, strong) NSNumber *mode;
10
- @property (nonatomic, assign) NSTimeInterval duration;
11
+ @property (nonatomic, strong) NSNumber *bearing;
12
+ @property (nonatomic, strong) NSNumber *pitch;
11
13
 
12
- @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
13
14
  @property (nonatomic, assign) MLNCoordinateBounds bounds;
14
15
  @property (nonatomic, assign) UIEdgeInsets padding;
15
16
 
17
+ @property (nonatomic, assign) NSTimeInterval duration;
18
+ @property (nonatomic, strong) NSNumber *easing;
19
+
16
20
  + (CameraStop *)fromDictionary:(NSDictionary *)args;
17
21
 
18
22
  @end
@@ -0,0 +1,75 @@
1
+ #import "CameraStop.h"
2
+ #import "CameraEasing.h"
3
+ #import "MLRNCamera.h"
4
+ #import "MLRNUtils.h"
5
+
6
+ @implementation CameraStop
7
+
8
+ - (void)setEasing:(NSNumber *)easing {
9
+ NSInteger value = easing ? easing.integerValue : (NSInteger)MLRNCameraEasingNone;
10
+ switch (value) {
11
+ case MLRNCameraEasingNone:
12
+ case MLRNCameraEasingLinear:
13
+ case MLRNCameraEasingEase:
14
+ case MLRNCameraEasingFly:
15
+ _easing = @(value);
16
+ break;
17
+ default:
18
+ _easing = @(MLRNCameraEasingNone);
19
+ break;
20
+ }
21
+ }
22
+
23
+ - (id)init {
24
+ if (self = [super init]) {
25
+ self.center = kCLLocationCoordinate2DInvalid;
26
+ self.bounds =
27
+ MLNCoordinateBoundsMake(kCLLocationCoordinate2DInvalid, kCLLocationCoordinate2DInvalid);
28
+ }
29
+
30
+ return self;
31
+ }
32
+
33
+ + (CameraStop *)fromDictionary:(NSDictionary *)args {
34
+ CameraStop *stop = [[CameraStop alloc] init];
35
+
36
+ if (args[@"longitude"] && args[@"latitude"]) {
37
+ stop.center = [MLRNUtils fromLongitude:args[@"longitude"] latitude:args[@"latitude"]];
38
+ }
39
+
40
+ if (args[@"zoom"]) {
41
+ stop.zoom = args[@"zoom"];
42
+ }
43
+
44
+ if (args[@"bearing"]) {
45
+ stop.bearing = args[@"bearing"];
46
+ }
47
+
48
+ if (args[@"pitch"]) {
49
+ stop.pitch = args[@"pitch"];
50
+ }
51
+
52
+ if (args[@"bounds"]) {
53
+ stop.bounds = [MLRNUtils fromReactBounds:args[@"bounds"]];
54
+ }
55
+
56
+ NSDictionary *padding = args[@"padding"];
57
+ stop.padding =
58
+ padding ? UIEdgeInsetsMake([padding[@"top"] floatValue], [padding[@"left"] floatValue],
59
+ [padding[@"bottom"] floatValue], [padding[@"right"] floatValue])
60
+ : UIEdgeInsetsZero;
61
+
62
+ NSTimeInterval duration = 0;
63
+ if (args[@"duration"]) {
64
+ duration = [MLRNUtils fromMS:args[@"duration"]];
65
+ }
66
+ stop.duration = duration;
67
+
68
+ if (args[@"easing"]) {
69
+ stop.easing = @([args[@"easing"] integerValue]);
70
+ }
71
+
72
+ return stop;
73
+ }
74
+
75
+ @end
@@ -1,13 +1,5 @@
1
1
  #import "CameraUpdateItem.h"
2
- #import "CameraMode.h"
3
-
4
- @interface MLNMapView (FlyToWithPadding)
5
- - (void)_flyToCamera:(MLNMapCamera *)camera
6
- edgePadding:(UIEdgeInsets)insets
7
- withDuration:(NSTimeInterval)duration
8
- peakAltitude:(CLLocationDistance)peakAltitude
9
- completionHandler:(nullable void (^)(void))completion;
10
- @end
2
+ #import "CameraEasing.h"
11
3
 
12
4
  @interface MLRNCameraWithPadding : MLNMapCamera
13
5
 
@@ -23,14 +15,22 @@
23
15
  @implementation CameraUpdateItem
24
16
 
25
17
  - (void)execute:(MLRNMapView *)mapView withCompletionHandler:(void (^)(void))completionHandler {
26
- if (_cameraStop.mode == [NSNumber numberWithInt:RCT_MAPBOX_CAMERA_MODE_FLIGHT]) {
27
- [self _flyToCamera:mapView withCompletionHandler:completionHandler];
28
- } else if (_cameraStop.mode == [NSNumber numberWithInt:RCT_MAPBOX_CAMERA_MODE_EASE]) {
29
- [self _moveCamera:mapView animated:YES ease:YES withCompletionHandler:completionHandler];
30
- } else if (_cameraStop.mode == [NSNumber numberWithInt:RCT_MAPBOX_CAMERA_MODE_LINEAR]) {
31
- [self _moveCamera:mapView animated:YES ease:NO withCompletionHandler:completionHandler];
32
- } else {
33
- [self _moveCamera:mapView animated:NO ease:NO withCompletionHandler:completionHandler];
18
+ NSInteger easing = [_cameraStop.easing integerValue];
19
+
20
+ switch (easing) {
21
+ case MLRNCameraEasingLinear:
22
+ [self _moveCamera:mapView animated:YES ease:NO withCompletionHandler:completionHandler];
23
+ break;
24
+ case MLRNCameraEasingEase:
25
+ [self _moveCamera:mapView animated:YES ease:YES withCompletionHandler:completionHandler];
26
+ break;
27
+ case MLRNCameraEasingFly:
28
+ [self _flyToCamera:mapView withCompletionHandler:completionHandler];
29
+ break;
30
+ case MLRNCameraEasingNone:
31
+ default:
32
+ [self _moveCamera:mapView animated:NO ease:NO withCompletionHandler:completionHandler];
33
+ break;
34
34
  }
35
35
  }
36
36
 
@@ -38,18 +38,10 @@
38
38
  withCompletionHandler:(void (^)(void))completionHandler {
39
39
  MLRNCameraWithPadding *nextCamera = [self _makeCamera:mapView];
40
40
 
41
- if ([mapView respondsToSelector:@selector
42
- (_flyToCamera:edgePadding:withDuration:peakAltitude:completionHandler:)]) {
43
- [mapView _flyToCamera:nextCamera.camera
44
- edgePadding:nextCamera.boundsPadding
45
- withDuration:_cameraStop.duration
46
- peakAltitude:-1
47
- completionHandler:completionHandler];
48
- } else {
49
- [mapView flyToCamera:nextCamera.camera
50
- withDuration:_cameraStop.duration
51
- completionHandler:completionHandler];
52
- }
41
+ [mapView flyToCamera:nextCamera.camera
42
+ edgePadding:nextCamera.boundsPadding
43
+ withDuration:_cameraStop.duration
44
+ completionHandler:completionHandler];
53
45
  }
54
46
 
55
47
  - (void)_moveCamera:(MLRNMapView *)mapView
@@ -72,6 +64,7 @@
72
64
 
73
65
  UIEdgeInsets padding = [self _clippedPadding:_cameraStop.padding forView:mapView];
74
66
  if (padding.top <= 0 && padding.bottom <= 0) {
67
+ // TODO: Report Bug
75
68
  // If all padding properties are 0 in the update, and the bounds and centerCoordinate do not
76
69
  // change, the padding doesn't change either. This seems to be a bug in the iOS SDK.
77
70
  padding.top = 1.0;
@@ -80,9 +73,8 @@
80
73
 
81
74
  bool hasSetAltitude = false;
82
75
 
83
- if ([self _isCoordValid:_cameraStop.coordinate]) {
84
- MLNCoordinateBounds boundsFromCoord = {.sw = _cameraStop.coordinate,
85
- .ne = _cameraStop.coordinate};
76
+ if ([self _isCenterValid:_cameraStop.center]) {
77
+ MLNCoordinateBounds boundsFromCoord = {.sw = _cameraStop.center, .ne = _cameraStop.center};
86
78
  MLNMapCamera *boundsCamera = [mapView camera:nextCamera
87
79
  fittingCoordinateBounds:boundsFromCoord
88
80
  edgePadding:padding];
@@ -96,12 +88,8 @@
96
88
  hasSetAltitude = true;
97
89
  }
98
90
 
99
- if (_cameraStop.pitch != nil) {
100
- nextCamera.pitch = [_cameraStop.pitch floatValue];
101
- }
102
-
103
- if (_cameraStop.heading != nil) {
104
- nextCamera.heading = [_cameraStop.heading floatValue];
91
+ if (_cameraStop.bearing != nil) {
92
+ nextCamera.heading = [_cameraStop.bearing floatValue];
105
93
  }
106
94
 
107
95
  if (_cameraStop.zoom != nil && hasSetAltitude == false) {
@@ -110,26 +98,37 @@
110
98
  atPitch:nextCamera.pitch];
111
99
  }
112
100
 
101
+ if (_cameraStop.pitch != nil) {
102
+ nextCamera.pitch = [_cameraStop.pitch floatValue];
103
+ }
104
+
113
105
  MLRNCameraWithPadding *cameraWithPadding = [[MLRNCameraWithPadding alloc] init];
114
106
  cameraWithPadding.camera = nextCamera;
115
107
  cameraWithPadding.boundsPadding = padding;
108
+
116
109
  return cameraWithPadding;
117
110
  }
118
111
 
119
112
  - (UIEdgeInsets)_clippedPadding:(UIEdgeInsets)padding forView:(MLRNMapView *)mapView {
120
113
  UIEdgeInsets result = padding;
121
- if ((padding.top + padding.bottom) >= mapView.frame.size.height) {
114
+
115
+ double width = mapView.frame.size.width;
116
+ double height = mapView.frame.size.height;
117
+
118
+ if ((padding.top + padding.bottom) >= height) {
122
119
  double totalPadding = padding.top + padding.bottom;
123
- double extra = totalPadding - mapView.frame.size.height + 1.0;
120
+ double extra = totalPadding - height + 1.0;
124
121
  result.top -= (padding.top * extra) / totalPadding;
125
122
  result.bottom -= (padding.bottom * extra) / totalPadding;
126
123
  }
127
- if ((padding.left + padding.right) >= mapView.frame.size.width) {
124
+
125
+ if ((padding.left + padding.right) >= width) {
128
126
  double totalPadding = padding.left + padding.right;
129
- double extra = totalPadding - mapView.frame.size.width + 1.0;
127
+ double extra = totalPadding - width + 1.0;
130
128
  result.left -= (padding.left * extra) / totalPadding;
131
129
  result.right -= (padding.right * extra) / totalPadding;
132
130
  }
131
+
133
132
  return result;
134
133
  }
135
134
 
@@ -145,7 +144,7 @@
145
144
  return latitude >= -90 && latitude <= 90;
146
145
  }
147
146
 
148
- - (BOOL)_isCoordValid:(CLLocationCoordinate2D)coord {
147
+ - (BOOL)_isCenterValid:(CLLocationCoordinate2D)coord {
149
148
  BOOL isValid = CLLocationCoordinate2DIsValid(coord);
150
149
 
151
150
  if (!isValid) {
@@ -155,14 +154,14 @@
155
154
  return YES;
156
155
  }
157
156
 
158
- - (BOOL)_hasCenterCoordAndZoom {
159
- BOOL isValid = CLLocationCoordinate2DIsValid(_cameraStop.coordinate) && _cameraStop.zoom != nil;
157
+ - (BOOL)_hasCenterAndZoom {
158
+ BOOL isValid = CLLocationCoordinate2DIsValid(_cameraStop.center) && _cameraStop.zoom != nil;
160
159
 
161
160
  if (!isValid) {
162
161
  return NO;
163
162
  }
164
163
 
165
- return [self _isCoordValid:_cameraStop.coordinate];
164
+ return [self _isCenterValid:_cameraStop.center];
166
165
  }
167
166
 
168
167
  @end
@@ -0,0 +1,26 @@
1
+ #import <React/RCTComponent.h>
2
+ #import <UIKit/UIKit.h>
3
+ #import "MLRNMapView.h"
4
+
5
+ @class MLRNMapView;
6
+
7
+ @interface MLRNCamera : UIView <MLRNMapViewCamera>
8
+
9
+ @property (nonatomic, strong) MLRNMapView *map;
10
+
11
+ @property (nonatomic, strong) NSDictionary<NSString *, id> *stop;
12
+
13
+ @property (nonatomic, strong) NSDictionary<NSString *, id> *initialViewState;
14
+
15
+ @property (nonatomic, copy) NSNumber *minZoom;
16
+ @property (nonatomic, copy) NSNumber *maxZoom;
17
+ @property (nonatomic, copy) NSArray<NSNumber *> *maxBounds;
18
+
19
+ @property (nonatomic, copy) NSString *trackUserLocation;
20
+
21
+ @property (nonatomic, copy) RCTDirectEventBlock onTrackUserLocationChange;
22
+
23
+ - (void)handleImperativeStop:(NSDictionary<NSString *, id> *)stop;
24
+ - (void)updateCamera;
25
+
26
+ @end
@@ -0,0 +1,195 @@
1
+ #import "MLRNCamera.h"
2
+ #import "CameraEasing.h"
3
+ #import "CameraStop.h"
4
+ #import "CameraUpdateQueue.h"
5
+ #import "MLRNEvent.h"
6
+ #import "MLRNEventTypes.h"
7
+ #import "MLRNLocation.h"
8
+ #import "MLRNLocationManager.h"
9
+ #import "MLRNUtils.h"
10
+
11
+ @implementation MLRNCamera {
12
+ CameraUpdateQueue *cameraUpdateQueue;
13
+ MLRNCamera *followCamera;
14
+ }
15
+
16
+ - (instancetype)init {
17
+ if (self = [super init]) {
18
+ cameraUpdateQueue = [[CameraUpdateQueue alloc] init];
19
+ }
20
+ return self;
21
+ }
22
+
23
+ - (void)dealloc {
24
+ if (_map) {
25
+ _map.reactCamera = nil;
26
+ }
27
+ }
28
+
29
+ - (void)setMap:(MLRNMapView *)map {
30
+ if (_map != nil) {
31
+ _map.reactCamera = nil;
32
+ }
33
+ _map = map;
34
+ _map.reactCamera = self;
35
+
36
+ // [self _setInitialCamera];
37
+ [self _updateMinMaxZoom];
38
+ [self _updateMaxBounds];
39
+ // [self updateCamera];
40
+ }
41
+
42
+ - (void)setStop:(NSDictionary<NSString *, id> *)stop {
43
+ _stop = stop;
44
+ }
45
+
46
+ - (void)setMinZoom:(NSNumber *)minZoom {
47
+ _minZoom = minZoom;
48
+
49
+ [self _updateMinMaxZoom];
50
+ }
51
+
52
+ - (void)setMaxZoom:(NSNumber *)maxZoom {
53
+ _maxZoom = maxZoom;
54
+
55
+ [self _updateMinMaxZoom];
56
+ }
57
+
58
+ - (void)setMaxBounds:(NSArray<NSNumber *> *)maxBounds {
59
+ _maxBounds = maxBounds;
60
+
61
+ [self _updateMaxBounds];
62
+ }
63
+
64
+ - (void)setTrackUserLocation:(NSString *)trackUserLocation {
65
+ _trackUserLocation = trackUserLocation;
66
+ }
67
+
68
+ - (void)handleImperativeStop:(NSDictionary<NSString *, id> *)stop {
69
+ if (_map != nil) {
70
+ [cameraUpdateQueue enqueue:[CameraStop fromDictionary:stop]];
71
+ [cameraUpdateQueue execute:_map];
72
+ }
73
+ }
74
+
75
+ - (void)updateCamera {
76
+ if (_map != nil) {
77
+ if ([self _userTrackingMode] == MLNUserTrackingModeNone) {
78
+ [self _updateCameraFromStop];
79
+ } else {
80
+ [self _updateCameraFromTrackUserLocation];
81
+ }
82
+ }
83
+ }
84
+
85
+ - (void)_updateCameraFromStop {
86
+ if (_map.userTrackingMode != MLNUserTrackingModeNone) {
87
+ _map.userTrackingMode = MLNUserTrackingModeNone;
88
+ }
89
+
90
+ if (_stop != nil) {
91
+ [cameraUpdateQueue enqueue:[CameraStop fromDictionary:_stop]];
92
+ [cameraUpdateQueue execute:_map];
93
+ }
94
+ }
95
+
96
+ - (void)_updateCameraFromTrackUserLocation {
97
+ MLNMapCamera *camera = _map.camera;
98
+
99
+ if (_stop != nil) {
100
+ if (_stop[@"zoom"] != nil) {
101
+ camera.altitude = [_map altitudeFromZoom:[_stop[@"zoom"] floatValue]];
102
+ }
103
+
104
+ if ([self _userTrackingMode] != MLNUserTrackingModeFollowWithCourse &&
105
+ [self _userTrackingMode] != MLNUserTrackingModeFollowWithHeading) {
106
+ if (_stop[@"bearing"] != nil) {
107
+ camera.heading = [_stop[@"bearing"] floatValue];
108
+ }
109
+ }
110
+
111
+ if (_stop[@"pitch"] != nil) {
112
+ camera.pitch = [_stop[@"pitch"] floatValue];
113
+ }
114
+ }
115
+
116
+ [_map setCamera:camera animated:NO];
117
+
118
+ if (_map.userTrackingMode != [self _userTrackingMode]) {
119
+ _map.userTrackingMode = [self _userTrackingMode];
120
+ }
121
+ }
122
+
123
+ - (void)_setInitialCamera {
124
+ if (!_initialViewState) {
125
+ return;
126
+ }
127
+
128
+ CameraStop *stop = [CameraStop fromDictionary:_initialViewState];
129
+ stop.duration = 0;
130
+ stop.easing = @(MLRNCameraEasingNone);
131
+ CameraUpdateItem *item = [[CameraUpdateItem alloc] init];
132
+ item.cameraStop = stop;
133
+ [item execute:_map
134
+ withCompletionHandler:^{
135
+ }];
136
+ }
137
+
138
+ - (void)_updateMinMaxZoom {
139
+ if (_map != nil) {
140
+ if (_maxZoom) {
141
+ _map.maximumZoomLevel = [_maxZoom doubleValue];
142
+ }
143
+ if (_minZoom) {
144
+ _map.minimumZoomLevel = [_minZoom doubleValue];
145
+ }
146
+ }
147
+ }
148
+
149
+ - (void)_updateMaxBounds {
150
+ if (_map != nil) {
151
+ if (_maxBounds) {
152
+ _map.maxBounds = [MLRNUtils fromReactBounds:_maxBounds];
153
+ }
154
+ }
155
+ }
156
+
157
+ - (MLNUserTrackingMode)_userTrackingMode {
158
+ if ([_trackUserLocation isEqualToString:@"default"]) {
159
+ return MLNUserTrackingModeFollow;
160
+ } else if ([_trackUserLocation isEqualToString:@"heading"]) {
161
+ return MLNUserTrackingModeFollowWithHeading;
162
+ } else if ([_trackUserLocation isEqualToString:@"course"]) {
163
+ return MLNUserTrackingModeFollowWithCourse;
164
+ } else {
165
+ return MLNUserTrackingModeNone;
166
+ }
167
+ }
168
+
169
+ - (id)_trackingModeToString:(MLNUserTrackingMode)mode {
170
+ switch (mode) {
171
+ case MLNUserTrackingModeFollow:
172
+ return @"default";
173
+ case MLNUserTrackingModeFollowWithHeading:
174
+ return @"heading";
175
+ case MLNUserTrackingModeFollowWithCourse:
176
+ return @"course";
177
+ case MLNUserTrackingModeNone:
178
+ return [NSNull null];
179
+ }
180
+ }
181
+
182
+ - (void)initialLayout {
183
+ [self _setInitialCamera];
184
+ [self updateCamera];
185
+ }
186
+
187
+ - (void)didChangeUserTrackingMode:(MLNUserTrackingMode)mode animated:(BOOL)animated {
188
+ NSDictionary *payload = @{
189
+ @"trackUserLocation" : [self _trackingModeToString:mode],
190
+ };
191
+
192
+ self.onTrackUserLocationChange(payload);
193
+ }
194
+
195
+ @end
@@ -0,0 +1,18 @@
1
+ #import <React/RCTViewComponentView.h>
2
+ #import <UIKit/UIKit.h>
3
+
4
+ #import <React/RCTUIManager.h>
5
+ #import <React/RCTViewComponentView.h>
6
+
7
+ #ifndef MLRNCameraComponentView_h
8
+ #define MLRNCameraComponentView_h
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface MLRNCameraComponentView : RCTViewComponentView
13
+
14
+ @end
15
+
16
+ NS_ASSUME_NONNULL_END
17
+
18
+ #endif