react-native-map4d-map-dtqg 0.1.4 → 0.1.5

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 (217) hide show
  1. package/README.md +58 -0
  2. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  3. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  4. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  5. package/android/build.gradle +2 -2
  6. package/android/src/main/java/com/reactnativemap4dmap/Map4dMapModule.java +39 -27
  7. package/ios/Map4dMap.h +12 -3
  8. package/ios/Map4dMap.m +108 -3
  9. package/ios/Map4dMapTurbo.mm +16 -0
  10. package/ios/RMFCircleManager.m +40 -68
  11. package/ios/RMFDirectionsRendererManager.m +26 -24
  12. package/ios/RMFMapViewManager.m +64 -149
  13. package/ios/RMFMarkerManager.m +36 -64
  14. package/ios/RMFPOIManager.m +40 -74
  15. package/ios/RMFPolygonManager.m +38 -60
  16. package/ios/RMFPolylineManager.m +36 -58
  17. package/ios/building/RMFBuildingManager.m +36 -64
  18. package/lib/commonjs/components/MFBanDoSo/constants.js +27 -0
  19. package/lib/commonjs/components/MFBanDoSo/constants.js.map +1 -0
  20. package/lib/commonjs/components/MFBanDoSo/helpers.js +200 -0
  21. package/lib/commonjs/components/MFBanDoSo/helpers.js.map +1 -0
  22. package/lib/commonjs/components/MFBanDoSo/propTypes.js +18 -0
  23. package/lib/commonjs/components/MFBanDoSo/propTypes.js.map +1 -0
  24. package/lib/commonjs/components/MFBanDoSo/styles.js +328 -0
  25. package/lib/commonjs/components/MFBanDoSo/styles.js.map +1 -0
  26. package/lib/commonjs/components/MFBanDoSo/ui.js +220 -0
  27. package/lib/commonjs/components/MFBanDoSo/ui.js.map +1 -0
  28. package/lib/commonjs/components/MFBanDoSo.js +190 -73
  29. package/lib/commonjs/components/MFBanDoSo.js.map +1 -1
  30. package/lib/commonjs/components/MFBuilding.js +15 -90
  31. package/lib/commonjs/components/MFBuilding.js.map +1 -1
  32. package/lib/commonjs/components/MFCircle.js +20 -88
  33. package/lib/commonjs/components/MFCircle.js.map +1 -1
  34. package/lib/commonjs/components/MFDirectionsRenderer.js +15 -93
  35. package/lib/commonjs/components/MFDirectionsRenderer.js.map +1 -1
  36. package/lib/commonjs/components/MFMapView.js +50 -147
  37. package/lib/commonjs/components/MFMapView.js.map +1 -1
  38. package/lib/commonjs/components/MFMarker.js +15 -101
  39. package/lib/commonjs/components/MFMarker.js.map +1 -1
  40. package/lib/commonjs/components/MFPOI.js +17 -92
  41. package/lib/commonjs/components/MFPOI.js.map +1 -1
  42. package/lib/commonjs/components/MFPolygon.js +15 -87
  43. package/lib/commonjs/components/MFPolygon.js.map +1 -1
  44. package/lib/commonjs/components/MFPolyline.js +17 -87
  45. package/lib/commonjs/components/MFPolyline.js.map +1 -1
  46. package/lib/commonjs/components/MFTileOverlay.js +7 -15
  47. package/lib/commonjs/components/MFTileOverlay.js.map +1 -1
  48. package/lib/commonjs/components/Map4dMapView.js +1 -4
  49. package/lib/commonjs/components/Map4dMapView.js.map +1 -1
  50. package/lib/commonjs/components/extends/AreaFocusManager.js +4 -38
  51. package/lib/commonjs/components/extends/AreaFocusManager.js.map +1 -1
  52. package/lib/commonjs/components/extends/AreaFocuser.js +1 -17
  53. package/lib/commonjs/components/extends/AreaFocuser.js.map +1 -1
  54. package/lib/commonjs/components/extends/BoundHelper.js +0 -6
  55. package/lib/commonjs/components/extends/BoundHelper.js.map +1 -1
  56. package/lib/commonjs/components/extends/area/AreaFocusAreas.js +0 -37
  57. package/lib/commonjs/components/extends/area/AreaFocusAreas.js.map +1 -1
  58. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js +1 -35
  59. package/lib/commonjs/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  60. package/lib/commonjs/components/extends/area/AreaFocusSession.js +0 -18
  61. package/lib/commonjs/components/extends/area/AreaFocusSession.js.map +1 -1
  62. package/lib/commonjs/components/extends/area/AreaFocusTypes.js +2 -3
  63. package/lib/commonjs/components/extends/area/AreaFocusTypes.js.map +1 -1
  64. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js +1 -2
  65. package/lib/commonjs/components/internal/DefaultRoadmapStyle.js.map +1 -1
  66. package/lib/commonjs/components/internal/GeojsonStyleUtils.js +20 -31
  67. package/lib/commonjs/components/internal/GeojsonStyleUtils.js.map +1 -1
  68. package/lib/commonjs/index.js +0 -11
  69. package/lib/commonjs/index.js.map +1 -1
  70. package/lib/commonjs/native/Map4dMapNativeModule.js +10 -0
  71. package/lib/commonjs/native/Map4dMapNativeModule.js.map +1 -0
  72. package/lib/commonjs/native/NativeModuleResolver.js +35 -0
  73. package/lib/commonjs/native/NativeModuleResolver.js.map +1 -0
  74. package/lib/commonjs/native/ViewManagerCommand.js +67 -0
  75. package/lib/commonjs/native/ViewManagerCommand.js.map +1 -0
  76. package/lib/commonjs/package.json +1 -0
  77. package/lib/commonjs/specs/NativeMap4dMap.js +9 -0
  78. package/lib/commonjs/specs/NativeMap4dMap.js.map +1 -0
  79. package/lib/module/components/MFBanDoSo/constants.js +22 -0
  80. package/lib/module/components/MFBanDoSo/constants.js.map +1 -0
  81. package/lib/module/components/MFBanDoSo/helpers.js +188 -0
  82. package/lib/module/components/MFBanDoSo/helpers.js.map +1 -0
  83. package/lib/module/components/MFBanDoSo/propTypes.js +14 -0
  84. package/lib/module/components/MFBanDoSo/propTypes.js.map +1 -0
  85. package/lib/module/components/MFBanDoSo/styles.js +325 -0
  86. package/lib/module/components/MFBanDoSo/styles.js.map +1 -0
  87. package/lib/module/components/MFBanDoSo/ui.js +213 -0
  88. package/lib/module/components/MFBanDoSo/ui.js.map +1 -0
  89. package/lib/module/components/MFBanDoSo.js +192 -63
  90. package/lib/module/components/MFBanDoSo.js.map +1 -1
  91. package/lib/module/components/MFBuilding.js +17 -82
  92. package/lib/module/components/MFBuilding.js.map +1 -1
  93. package/lib/module/components/MFCircle.js +22 -80
  94. package/lib/module/components/MFCircle.js.map +1 -1
  95. package/lib/module/components/MFDirectionsRenderer.js +16 -85
  96. package/lib/module/components/MFDirectionsRenderer.js.map +1 -1
  97. package/lib/module/components/MFMapView.js +51 -136
  98. package/lib/module/components/MFMapView.js.map +1 -1
  99. package/lib/module/components/MFMarker.js +17 -92
  100. package/lib/module/components/MFMarker.js.map +1 -1
  101. package/lib/module/components/MFPOI.js +19 -84
  102. package/lib/module/components/MFPOI.js.map +1 -1
  103. package/lib/module/components/MFPolygon.js +17 -79
  104. package/lib/module/components/MFPolygon.js.map +1 -1
  105. package/lib/module/components/MFPolyline.js +19 -79
  106. package/lib/module/components/MFPolyline.js.map +1 -1
  107. package/lib/module/components/MFTileOverlay.js +10 -9
  108. package/lib/module/components/MFTileOverlay.js.map +1 -1
  109. package/lib/module/components/Map4dMapView.js +2 -0
  110. package/lib/module/components/Map4dMapView.js.map +1 -1
  111. package/lib/module/components/extends/AreaFocusManager.js +6 -32
  112. package/lib/module/components/extends/AreaFocusManager.js.map +1 -1
  113. package/lib/module/components/extends/AreaFocuser.js +3 -15
  114. package/lib/module/components/extends/AreaFocuser.js.map +1 -1
  115. package/lib/module/components/extends/BoundHelper.js +2 -5
  116. package/lib/module/components/extends/BoundHelper.js.map +1 -1
  117. package/lib/module/components/extends/area/AreaFocusAreas.js +2 -33
  118. package/lib/module/components/extends/area/AreaFocusAreas.js.map +1 -1
  119. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js +2 -32
  120. package/lib/module/components/extends/area/AreaFocusGeometryUtils.js.map +1 -1
  121. package/lib/module/components/extends/area/AreaFocusSession.js +2 -17
  122. package/lib/module/components/extends/area/AreaFocusSession.js.map +1 -1
  123. package/lib/module/components/extends/area/AreaFocusTypes.js +3 -0
  124. package/lib/module/components/extends/area/AreaFocusTypes.js.map +1 -1
  125. package/lib/module/components/internal/DefaultRoadmapStyle.js +2 -0
  126. package/lib/module/components/internal/DefaultRoadmapStyle.js.map +1 -1
  127. package/lib/module/components/internal/GeojsonStyleUtils.js +21 -28
  128. package/lib/module/components/internal/GeojsonStyleUtils.js.map +1 -1
  129. package/lib/module/index.js +2 -0
  130. package/lib/module/index.js.map +1 -1
  131. package/lib/module/native/Map4dMapNativeModule.js +5 -0
  132. package/lib/module/native/Map4dMapNativeModule.js.map +1 -0
  133. package/lib/module/native/NativeModuleResolver.js +29 -0
  134. package/lib/module/native/NativeModuleResolver.js.map +1 -0
  135. package/lib/module/native/ViewManagerCommand.js +61 -0
  136. package/lib/module/native/ViewManagerCommand.js.map +1 -0
  137. package/lib/module/specs/NativeMap4dMap.js +5 -0
  138. package/lib/module/specs/NativeMap4dMap.js.map +1 -0
  139. package/lib/typescript/components/MFBanDoSo/constants.d.ts +8 -0
  140. package/lib/typescript/components/MFBanDoSo/constants.d.ts.map +1 -0
  141. package/lib/typescript/components/MFBanDoSo/helpers.d.ts +14 -0
  142. package/lib/typescript/components/MFBanDoSo/helpers.d.ts.map +1 -0
  143. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts +2 -0
  144. package/lib/typescript/components/MFBanDoSo/propTypes.d.ts.map +1 -0
  145. package/lib/typescript/components/MFBanDoSo/styles.d.ts +462 -0
  146. package/lib/typescript/components/MFBanDoSo/styles.d.ts.map +1 -0
  147. package/lib/typescript/components/MFBanDoSo/ui.d.ts +30 -0
  148. package/lib/typescript/components/MFBanDoSo/ui.d.ts.map +1 -0
  149. package/lib/typescript/components/MFBanDoSo.d.ts +37 -0
  150. package/lib/typescript/components/MFBanDoSo.d.ts.map +1 -0
  151. package/lib/typescript/components/MFBuilding.d.ts +24 -0
  152. package/lib/typescript/components/MFBuilding.d.ts.map +1 -0
  153. package/lib/typescript/components/MFCircle.d.ts +24 -0
  154. package/lib/typescript/components/MFCircle.d.ts.map +1 -0
  155. package/lib/typescript/components/MFDirectionsRenderer.d.ts +19 -0
  156. package/lib/typescript/components/MFDirectionsRenderer.d.ts.map +1 -0
  157. package/lib/typescript/components/MFMapView.d.ts +66 -0
  158. package/lib/typescript/components/MFMapView.d.ts.map +1 -0
  159. package/lib/typescript/components/MFMarker.d.ts +26 -0
  160. package/lib/typescript/components/MFMarker.d.ts.map +1 -0
  161. package/lib/typescript/components/MFPOI.d.ts +24 -0
  162. package/lib/typescript/components/MFPOI.d.ts.map +1 -0
  163. package/lib/typescript/components/MFPolygon.d.ts +24 -0
  164. package/lib/typescript/components/MFPolygon.d.ts.map +1 -0
  165. package/lib/typescript/components/MFPolyline.d.ts +24 -0
  166. package/lib/typescript/components/MFPolyline.d.ts.map +1 -0
  167. package/lib/typescript/components/MFTileOverlay.d.ts +12 -0
  168. package/lib/typescript/components/MFTileOverlay.d.ts.map +1 -0
  169. package/lib/typescript/components/Map4dMapView.d.ts +8 -7
  170. package/lib/typescript/components/Map4dMapView.d.ts.map +1 -0
  171. package/lib/typescript/components/extends/AreaFocusManager.d.ts +34 -0
  172. package/lib/typescript/components/extends/AreaFocusManager.d.ts.map +1 -0
  173. package/lib/typescript/components/extends/AreaFocuser.d.ts +15 -0
  174. package/lib/typescript/components/extends/AreaFocuser.d.ts.map +1 -0
  175. package/lib/typescript/components/extends/BoundHelper.d.ts +11 -0
  176. package/lib/typescript/components/extends/BoundHelper.d.ts.map +1 -0
  177. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts +58 -0
  178. package/lib/typescript/components/extends/area/AreaFocusAreas.d.ts.map +1 -0
  179. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts +19 -0
  180. package/lib/typescript/components/extends/area/AreaFocusGeometryUtils.d.ts.map +1 -0
  181. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts +14 -0
  182. package/lib/typescript/components/extends/area/AreaFocusSession.d.ts.map +1 -0
  183. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts +40 -0
  184. package/lib/typescript/components/extends/area/AreaFocusTypes.d.ts.map +1 -0
  185. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts +820 -0
  186. package/lib/typescript/components/internal/DefaultRoadmapStyle.d.ts.map +1 -0
  187. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts +3 -0
  188. package/lib/typescript/components/internal/GeojsonStyleUtils.d.ts.map +1 -0
  189. package/lib/typescript/index.d.ts +13 -0
  190. package/lib/typescript/index.d.ts.map +1 -0
  191. package/lib/typescript/native/Map4dMapNativeModule.d.ts +2 -0
  192. package/lib/typescript/native/Map4dMapNativeModule.d.ts.map +1 -0
  193. package/lib/typescript/native/NativeModuleResolver.d.ts +3 -0
  194. package/lib/typescript/native/NativeModuleResolver.d.ts.map +1 -0
  195. package/lib/typescript/native/ViewManagerCommand.d.ts +11 -0
  196. package/lib/typescript/native/ViewManagerCommand.d.ts.map +1 -0
  197. package/package.json +27 -11
  198. package/src/components/MFBanDoSo/constants.js +32 -0
  199. package/src/components/MFBanDoSo/helpers.js +273 -0
  200. package/src/components/MFBanDoSo/propTypes.js +14 -0
  201. package/src/components/MFBanDoSo/styles.js +316 -0
  202. package/src/components/MFBanDoSo/ui.js +230 -0
  203. package/src/components/MFBanDoSo.js +268 -78
  204. package/src/components/MFBuilding.js +8 -48
  205. package/src/components/MFCircle.js +8 -48
  206. package/src/components/MFDirectionsRenderer.js +8 -47
  207. package/src/components/MFMapView.js +31 -53
  208. package/src/components/MFMarker.js +9 -50
  209. package/src/components/MFPOI.js +8 -48
  210. package/src/components/MFPolygon.js +8 -48
  211. package/src/components/MFPolyline.js +8 -48
  212. package/src/components/internal/GeojsonStyleUtils.js +3 -0
  213. package/src/native/Map4dMapNativeModule.js +3 -0
  214. package/src/native/NativeModuleResolver.js +33 -0
  215. package/src/native/ViewManagerCommand.js +82 -0
  216. package/src/specs/NativeMap4dMap.js +12 -0
  217. package/ios/Map4dMapViewManager.m +0 -34
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MFMarker = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
13
-
10
+ var _ViewManagerCommand = require("../native/ViewManagerCommand");
14
11
  var _reactNative = require("react-native");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
14
  // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
21
15
  const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
22
- const propTypes = { ...viewPropTypes,
23
-
16
+ const propTypes = {
17
+ ...viewPropTypes,
24
18
  /**
25
19
  * The coordinate for the marker.
26
20
  */
@@ -28,12 +22,10 @@ const propTypes = { ...viewPropTypes,
28
22
  latitude: _propTypes.default.number.isRequired,
29
23
  longitude: _propTypes.default.number.isRequired
30
24
  }).isRequired,
31
-
32
25
  /**
33
26
  * Default value is `false`
34
27
  */
35
28
  draggable: _propTypes.default.bool,
36
-
37
29
  /**
38
30
  * Sets the ground anchor point for the marker.
39
31
  */
@@ -41,17 +33,14 @@ const propTypes = { ...viewPropTypes,
41
33
  x: _propTypes.default.number.isRequired,
42
34
  y: _propTypes.default.number.isRequired
43
35
  }),
44
-
45
36
  /**
46
37
  *
47
38
  */
48
39
  elevation: _propTypes.default.number,
49
-
50
40
  /**
51
41
  *
52
42
  */
53
43
  rotation: _propTypes.default.number,
54
-
55
44
  /**
56
45
  * Sets the infor window anchor point for the marker.
57
46
  */
@@ -59,17 +48,14 @@ const propTypes = { ...viewPropTypes,
59
48
  x: _propTypes.default.number.isRequired,
60
49
  y: _propTypes.default.number.isRequired
61
50
  }),
62
-
63
51
  /**
64
52
  * The title of the marker.
65
53
  */
66
54
  title: _propTypes.default.string,
67
-
68
55
  /**
69
56
  * The snippet of the marker.
70
57
  */
71
58
  snippet: _propTypes.default.string,
72
-
73
59
  /**
74
60
  * Marker icon to render.
75
61
  */
@@ -78,168 +64,99 @@ const propTypes = { ...viewPropTypes,
78
64
  width: _propTypes.default.number.isRequired,
79
65
  height: _propTypes.default.number.isRequired
80
66
  }),
81
-
82
67
  /**
83
68
  * zIndex
84
69
  */
85
70
  zIndex: _propTypes.default.number,
86
-
87
71
  /**
88
72
  * visible
89
73
  */
90
74
  visible: _propTypes.default.bool,
91
-
92
75
  /**
93
76
  * userData
94
77
  */
95
78
  userData: _propTypes.default.object,
96
-
97
79
  /**
98
80
  * Callback that is called when the user presses on the marker
99
81
  */
100
82
  onPress: _propTypes.default.func,
101
-
102
83
  /**
103
84
  * Callback that is called when the user presses on the info window
104
85
  */
105
86
  onPressInfoWindow: _propTypes.default.func,
106
-
107
87
  /**
108
88
  * Callback that is called when the user initiates a drag on this marker (if it is draggable)
109
89
  */
110
90
  onDragStart: _propTypes.default.func,
111
-
112
91
  /**
113
92
  * Callback called continuously as the marker is dragged
114
93
  */
115
94
  onDrag: _propTypes.default.func,
116
-
117
95
  /**
118
96
  * Callback that is called when a drag on this marker finishes. This is usually the point you
119
97
  * will want to setState on the marker's coordinate again
120
98
  */
121
99
  onDragEnd: _propTypes.default.func
122
100
  };
123
-
124
101
  class MFMarker extends _react.default.Component {
125
102
  constructor(props) {
126
103
  super(props);
127
104
  this._onPress = this._onPress.bind(this);
128
105
  this._ref = this._ref.bind(this);
129
106
  }
130
-
131
107
  setCoordinate(location) {
132
108
  this._runCommand("setCoordinate", [location]);
133
109
  }
134
-
135
110
  setRotation(rotation) {
136
111
  this._runCommand("setRotation", [rotation]);
137
112
  }
138
-
139
113
  setTitle(title) {
140
114
  this._runCommand("setTitle", [title]);
141
115
  }
142
-
143
116
  setSnippet(snippet) {
144
117
  this._runCommand("setSnippet", [snippet]);
145
118
  }
146
-
147
119
  setDraggable(draggable) {
148
120
  this._runCommand("setDraggable", [draggable]);
149
121
  }
150
-
151
122
  setZIndex(zIndex) {
152
123
  this._runCommand("setZIndex", [zIndex]);
153
124
  }
154
-
155
125
  setVisible(visible) {
156
126
  this._runCommand("setVisible", [visible]);
157
127
  }
158
-
159
128
  setInfoWindowAnchor(anchor) {
160
129
  this._runCommand("setInfoWindowAnchor", [anchor]);
161
130
  }
162
-
163
131
  setElevation(elevation) {
164
132
  this._runCommand("setElevation", [elevation]);
165
133
  }
166
-
167
134
  setUserData(userData) {
168
135
  this._runCommand("setUserData", [userData]);
169
136
  }
170
-
171
137
  _getHandle() {
172
138
  return (0, _reactNative.findNodeHandle)(this.marker);
173
139
  }
174
-
175
140
  _runCommand(name, args) {
176
- switch (_reactNative.Platform.OS) {
177
- case 'android':
178
- {
179
- if (!_reactNative.UIManager || typeof _reactNative.UIManager.dispatchViewManagerCommand !== 'function') {
180
- return;
181
- }
182
-
183
- const commandId = this._uiManagerCommand(name);
184
-
185
- if (commandId == null) {
186
- return;
187
- }
188
-
189
- _reactNative.UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
190
-
191
- break;
192
- }
193
-
194
- case 'ios':
195
- //this.getMapManagerCommand(name)(this._getHandle(), ...args);
196
- this._mapManagerCommand(name)(this._getHandle(), ...args);
197
-
198
- break;
199
-
200
- default:
201
- break;
202
- }
141
+ return (0, _ViewManagerCommand.runViewManagerCommand)({
142
+ componentName: 'RMFMarker',
143
+ moduleName: 'RMFMarker',
144
+ commandName: name,
145
+ args,
146
+ reactTag: this._getHandle()
147
+ });
203
148
  }
204
-
205
- _uiManagerCommand(name) {
206
- const uiManager = _reactNative.UIManager || _reactNative.NativeModules.UIManager;
207
- const componentName = "RMFMarker";
208
-
209
- if (!uiManager) {
210
- return null;
211
- }
212
-
213
- if (!uiManager.getViewManagerConfig) {
214
- // RN < 0.58
215
- const legacyConfig = uiManager[componentName];
216
- return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
217
- } // RN >= 0.58
218
-
219
-
220
- const config = uiManager.getViewManagerConfig(componentName);
221
- return config && config.Commands ? config.Commands[name] : null;
222
- }
223
-
224
- _mapManagerCommand(name) {
225
- return _reactNative.NativeModules[`RMFMarker`][name];
226
- }
227
-
228
149
  _onPress(event) {
229
150
  event.stopPropagation();
230
-
231
151
  if (this.props.onPress) {
232
152
  this.props.onPress(event);
233
153
  }
234
154
  }
235
-
236
155
  _ref(ref) {
237
156
  this.marker = ref;
238
157
  }
239
-
240
158
  render() {
241
159
  let icon = {};
242
-
243
160
  if (this.props.icon) {
244
161
  let uri = _reactNative.Image.resolveAssetSource(this.props.icon.uri) || {
245
162
  uri: this.props.icon.uri
@@ -250,21 +167,18 @@ class MFMarker extends _react.default.Component {
250
167
  height: this.props.icon.height
251
168
  };
252
169
  }
253
-
254
- return /*#__PURE__*/_react.default.createElement(RMFMarker, _extends({}, this.props, {
170
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFMarker, {
171
+ ...this.props,
255
172
  icon: icon,
256
173
  ref: this._ref,
257
174
  style: [styles.marker, this.props.style],
258
175
  onPress: this._onPress
259
- }));
176
+ });
260
177
  }
261
-
262
178
  }
263
-
264
179
  exports.MFMarker = MFMarker;
265
180
  MFMarker.propTypes = propTypes;
266
181
  var RMFMarker = (0, _reactNative.requireNativeComponent)(`RMFMarker`, MFMarker);
267
-
268
182
  const styles = _reactNative.StyleSheet.create({
269
183
  marker: {
270
184
  position: 'absolute'
@@ -1 +1 @@
1
- {"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","draggable","bool","anchor","x","y","elevation","rotation","infoWindowAnchor","title","string","snippet","icon","uri","any","width","height","zIndex","visible","userData","object","onPress","func","onPressInfoWindow","onDragStart","onDrag","onDragEnd","MFMarker","React","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","findNodeHandle","marker","name","args","Platform","OS","UIManager","dispatchViewManagerCommand","commandId","_uiManagerCommand","_mapManagerCommand","uiManager","NativeModules","componentName","getViewManagerConfig","legacyConfig","Commands","config","event","stopPropagation","ref","render","Image","resolveAssetSource","styles","style","RMFMarker","requireNativeComponent","StyleSheet","create","position"],"sources":["MFMarker.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {ViewPropTypes} from 'deprecated-react-native-prop-types';\r\nimport {\r\n requireNativeComponent,\r\n StyleSheet,\r\n Platform,\r\n Image,\r\n UIManager,\r\n NativeModules,\r\n findNodeHandle\r\n} from 'react-native';\r\n\r\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\r\nconst viewPropTypes = ViewPropTypes || View.propTypes;\r\n\r\nconst propTypes = {\r\n ...viewPropTypes,\r\n\r\n /**\r\n * The coordinate for the marker.\r\n */\r\n coordinate: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }).isRequired,\r\n\r\n /**\r\n * Default value is `false`\r\n */\r\n draggable: PropTypes.bool,\r\n\r\n /**\r\n * Sets the ground anchor point for the marker.\r\n */\r\n anchor: PropTypes.shape({\r\n x: PropTypes.number.isRequired,\r\n y: PropTypes.number.isRequired,\r\n }),\r\n\r\n /**\r\n * \r\n */\r\n elevation: PropTypes.number,\r\n\r\n /**\r\n * \r\n */\r\n rotation: PropTypes.number,\r\n\r\n /**\r\n * Sets the infor window anchor point for the marker.\r\n */\r\n infoWindowAnchor: PropTypes.shape({\r\n x: PropTypes.number.isRequired,\r\n y: PropTypes.number.isRequired,\r\n }),\r\n\r\n /**\r\n * The title of the marker.\r\n */\r\n title: PropTypes.string,\r\n\r\n /**\r\n * The snippet of the marker.\r\n */\r\n snippet: PropTypes.string,\r\n\r\n /**\r\n * Marker icon to render.\r\n */\r\n icon: PropTypes.shape({\r\n uri: PropTypes.any.isRequired,\r\n width: PropTypes.number.isRequired,\r\n height: PropTypes.number.isRequired,\r\n }),\r\n\r\n\r\n /**\r\n * zIndex\r\n */\r\n zIndex: PropTypes.number,\r\n\r\n /**\r\n * visible\r\n */\r\n visible: PropTypes.bool,\r\n\r\n /**\r\n * userData\r\n */\r\n userData:PropTypes.object,\r\n\r\n /**\r\n * Callback that is called when the user presses on the marker\r\n */\r\n onPress: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when the user presses on the info window\r\n */\r\n onPressInfoWindow: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when the user initiates a drag on this marker (if it is draggable)\r\n */\r\n onDragStart: PropTypes.func,\r\n\r\n /**\r\n * Callback called continuously as the marker is dragged\r\n */\r\n onDrag: PropTypes.func,\r\n\r\n /**\r\n * Callback that is called when a drag on this marker finishes. This is usually the point you\r\n * will want to setState on the marker's coordinate again\r\n */\r\n onDragEnd: PropTypes.func,\r\n};\r\n\r\n\r\nclass MFMarker extends React.Component {\r\n constructor(props) {\r\n super(props); \r\n this._onPress = this._onPress.bind(this)\r\n this._ref = this._ref.bind(this)\r\n }\r\n\r\n setCoordinate(location) {\r\n this._runCommand(\"setCoordinate\", [location])\r\n }\r\n\r\n setRotation(rotation) {\r\n this._runCommand(\"setRotation\", [rotation])\r\n }\r\n\r\n setTitle(title) {\r\n this._runCommand(\"setTitle\", [title])\r\n }\r\n\r\n setSnippet(snippet) {\r\n this._runCommand(\"setSnippet\", [snippet])\r\n }\r\n\r\n setDraggable(draggable) {\r\n this._runCommand(\"setDraggable\", [draggable])\r\n }\r\n\r\n setZIndex(zIndex) {\r\n this._runCommand(\"setZIndex\", [zIndex])\r\n }\r\n\r\n setVisible(visible) {\r\n this._runCommand(\"setVisible\", [visible])\r\n }\r\n\r\n setInfoWindowAnchor(anchor) {\r\n this._runCommand(\"setInfoWindowAnchor\", [anchor])\r\n }\r\n\r\n setElevation(elevation) {\r\n this._runCommand(\"setElevation\", [elevation])\r\n }\r\n\r\n setUserData(userData) {\r\n this._runCommand(\"setUserData\", [userData])\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.marker);\r\n }\r\n\r\n\r\n _runCommand(name, args) {\r\n switch (Platform.OS) {\r\n case 'android': {\r\n if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {\r\n return;\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name);\r\n if (commandId == null) {\r\n return;\r\n }\r\n\r\n UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);\r\n break;\r\n }\r\n \r\n case 'ios':\r\n //this.getMapManagerCommand(name)(this._getHandle(), ...args);\r\n this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n break;\r\n \r\n default:\r\n break;\r\n }\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const uiManager = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFMarker\";\r\n\r\n if (!uiManager) {\r\n return null;\r\n }\r\n \r\n if (!uiManager.getViewManagerConfig) {\r\n // RN < 0.58\r\n const legacyConfig = uiManager[componentName];\r\n return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;\r\n }\r\n \r\n // RN >= 0.58 \r\n const config = uiManager.getViewManagerConfig(componentName);\r\n return config && config.Commands ? config.Commands[name] : null;\r\n }\r\n \r\n _mapManagerCommand(name) {\r\n return NativeModules[`RMFMarker`][name];\r\n }\r\n\r\n _onPress(event) {\r\n event.stopPropagation();\r\n if (this.props.onPress) {\r\n this.props.onPress(event);\r\n }\r\n }\r\n\r\n _ref(ref) {\r\n this.marker = ref;\r\n }\r\n\r\n render() {\r\n let icon = {};\r\n if (this.props.icon) {\r\n let uri = Image.resolveAssetSource(this.props.icon.uri) || {uri: this.props.icon.uri};\r\n icon = {uri: uri.uri, width: this.props.icon.width, height: this.props.icon.height}\r\n }\r\n return <RMFMarker\r\n {...this.props}\r\n icon={icon}\r\n ref={this._ref}\r\n style={[styles.marker, this.props.style]}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n}\r\n\r\nMFMarker.propTypes = propTypes;\r\nvar RMFMarker = requireNativeComponent(`RMFMarker`, MFMarker);\r\n\r\nconst styles = StyleSheet.create({\r\n marker: {\r\n position: 'absolute'\r\n },\r\n});\r\n\r\nexport {MFMarker}\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAUA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGhB;AACF;AACA;EACEI,UAAU,EAAEC,kBAAA,CAAUC,KAAV,CAAgB;IAC1BC,QAAQ,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC,UADD;IAE1BC,SAAS,EAAEL,kBAAA,CAAUG,MAAV,CAAiBC;EAFF,CAAhB,EAGTA,UATa;;EAWhB;AACF;AACA;EACEE,SAAS,EAAEN,kBAAA,CAAUO,IAdL;;EAgBhB;AACF;AACA;EACEC,MAAM,EAAER,kBAAA,CAAUC,KAAV,CAAgB;IACtBQ,CAAC,EAAET,kBAAA,CAAUG,MAAV,CAAiBC,UADE;IAEtBM,CAAC,EAAEV,kBAAA,CAAUG,MAAV,CAAiBC;EAFE,CAAhB,CAnBQ;;EAwBhB;AACF;AACA;EACEO,SAAS,EAAEX,kBAAA,CAAUG,MA3BL;;EA6BhB;AACF;AACA;EACES,QAAQ,EAAEZ,kBAAA,CAAUG,MAhCJ;;EAkChB;AACF;AACA;EACEU,gBAAgB,EAAEb,kBAAA,CAAUC,KAAV,CAAgB;IAChCQ,CAAC,EAAET,kBAAA,CAAUG,MAAV,CAAiBC,UADY;IAEhCM,CAAC,EAAEV,kBAAA,CAAUG,MAAV,CAAiBC;EAFY,CAAhB,CArCF;;EA0ChB;AACF;AACA;EACEU,KAAK,EAAEd,kBAAA,CAAUe,MA7CD;;EA+ChB;AACF;AACA;EACEC,OAAO,EAAEhB,kBAAA,CAAUe,MAlDH;;EAoDhB;AACF;AACA;EACEE,IAAI,EAAEjB,kB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,CAAMC,kBAAN,CAAyB,KAAKxC,KAAL,CAAWnB,IAAX,CAAgBC,GAAzC,KAAiD;QAACA,GAAG,EAAE,KAAKkB,KAAL,CAAWnB,IAAX,CAAgBC;MAAtB,CAA3D;MACAD,IAAI,GAAG;QAACC,GAAG,EAAEA,GAAG,CAACA,GAAV;QAAeE,KAAK,EAAE,KAAKgB,KAAL,CAAWnB,IAAX,CAAgBG,KAAtC;QAA6CC,MAAM,EAAE,KAAKe,KAAL,CAAWnB,IAAX,CAAgBI;MAArE,CAAP;IACD;;IACD,oBAAO,6BAAC,SAAD,eACD,KAAKe,KADJ;MAEL,IAAI,EAAEnB,IAFD;MAGL,GAAG,EAAE,KAAKsB,IAHL;MAIL,KAAK,EAAE,CAACsC,MAAM,CAACvB,MAAR,EAAgB,KAAKlB,KAAL,CAAW0C,KAA3B,CAJF;MAKL,OAAO,EAAE,KAAKzC;IALT,GAAP;EAOD;;AA7HgC;;;AAgIvCL,QAAQ,CAAClC,SAAT,GAAqBA,SAArB;AACA,IAAIiF,SAAS,GAAG,IAAAC,mCAAA,EAAwB,WAAxB,EAAoChD,QAApC,CAAhB;;AAEA,MAAM6C,MAAM,GAAGI,uBAAA,CAAWC,MAAX,CAAkB;EAC/B5B,MAAM,EAAE;IACN6B,QAAQ,EAAE;EADJ;AADuB,CAAlB,CAAf"}
1
+ {"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","draggable","bool","anchor","x","y","elevation","rotation","infoWindowAnchor","title","string","snippet","icon","uri","any","width","height","zIndex","visible","userData","object","onPress","func","onPressInfoWindow","onDragStart","onDrag","onDragEnd","MFMarker","React","Component","constructor","props","_onPress","bind","_ref","setCoordinate","location","_runCommand","setRotation","setTitle","setSnippet","setDraggable","setZIndex","setVisible","setInfoWindowAnchor","setElevation","setUserData","_getHandle","findNodeHandle","marker","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","event","stopPropagation","ref","render","Image","resolveAssetSource","jsx","RMFMarker","style","styles","exports","requireNativeComponent","StyleSheet","create","position"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFMarker.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAKsB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEhB;AACF;AACA;EACEI,UAAU,EAAEC,kBAAS,CAACC,KAAK,CAAC;IAC1BC,QAAQ,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEL,kBAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CAAC,CAACA,UAAU;EAEb;AACF;AACA;EACEE,SAAS,EAAEN,kBAAS,CAACO,IAAI;EAEzB;AACF;AACA;EACEC,MAAM,EAAER,kBAAS,CAACC,KAAK,CAAC;IACtBQ,CAAC,EAAET,kBAAS,CAACG,MAAM,CAACC,UAAU;IAC9BM,CAAC,EAAEV,kBAAS,CAACG,MAAM,CAACC;EACtB,CAAC,CAAC;EAEF;AACF;AACA;EACEO,SAAS,EAAEX,kBAAS,CAACG,MAAM;EAE3B;AACF;AACA;EACES,QAAQ,EAAEZ,kBAAS,CAACG,MAAM;EAE1B;AACF;AACA;EACEU,gBAAgB,EAAEb,kBAAS,CAACC,KAAK,C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I,CAACW;IAAS,CACxB,CAAC;EACJ;AACN;AAACmC,OAAA,CAAAxC,QAAA,GAAAA,QAAA;AAEDA,QAAQ,CAAClC,SAAS,GAAGA,SAAS;AAC9B,IAAIuE,SAAS,GAAG,IAAAI,mCAAsB,EAAC,WAAW,EAAEzC,QAAQ,CAAC;AAE7D,MAAMuC,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BrB,MAAM,EAAE;IACNsB,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MFPOI = void 0;
7
-
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
9
  var _deprecatedReactNativePropTypes = require("deprecated-react-native-prop-types");
13
-
10
+ var _ViewManagerCommand = require("../native/ViewManagerCommand");
14
11
  var _reactNative = require("react-native");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
-
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
14
  // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
21
15
  const viewPropTypes = _deprecatedReactNativePropTypes.ViewPropTypes || View.propTypes;
22
- const propTypes = { ...viewPropTypes,
23
-
16
+ const propTypes = {
17
+ ...viewPropTypes,
24
18
  /**
25
19
  * The coordinate for the POI.
26
20
  */
@@ -28,40 +22,33 @@ const propTypes = { ...viewPropTypes,
28
22
  latitude: _propTypes.default.number.isRequired,
29
23
  longitude: _propTypes.default.number.isRequired
30
24
  }).isRequired,
31
-
32
25
  /**
33
26
  * The title of the POI.
34
27
  */
35
28
  title: _propTypes.default.string,
36
-
37
29
  /**
38
30
  * The color of the title.
39
31
  */
40
32
  titleColor: _deprecatedReactNativePropTypes.ColorPropType,
41
-
42
33
  /**
43
34
  * The subtile of the POI.
44
35
  */
45
36
  subtitle: _propTypes.default.string,
46
-
47
37
  /**
48
38
  * The type of POI
49
39
  */
50
40
  //poiType: PropTypes.oneOf(['cafe', 'atm', 'bank']),
51
41
  poiType: _propTypes.default.string,
52
-
53
42
  /**
54
43
  * POI icon to render.
55
44
  */
56
45
  icon: _propTypes.default.shape({
57
46
  uri: _propTypes.default.any.isRequired
58
47
  }),
59
-
60
48
  /**
61
49
  * zIndex
62
50
  */
63
51
  zIndex: _propTypes.default.number,
64
-
65
52
  /**
66
53
  * visible
67
54
  */
@@ -72,132 +59,72 @@ const propTypes = { ...viewPropTypes,
72
59
  * userData
73
60
  */
74
61
  userData: _propTypes.default.object,
75
-
76
62
  /**
77
63
  * Callback that is called when the user presses on the POI
78
64
  */
79
65
  onPress: _propTypes.default.func
80
66
  };
81
-
82
67
  class MFPOI extends _react.default.Component {
83
68
  constructor(props) {
84
69
  super(props);
85
70
  this._onPress = this._onPress.bind(this);
86
71
  this._ref = this._ref.bind(this);
87
72
  }
88
-
89
73
  _onPress(event) {
90
74
  event.stopPropagation();
91
-
92
75
  if (this.props.onPress) {
93
76
  this.props.onPress(event);
94
77
  }
95
78
  }
96
-
97
79
  _ref(ref) {
98
80
  this.poi = ref;
99
81
  }
100
-
101
82
  setCoordinate(coordinate) {
102
83
  this._runCommand("setCoordinate", [coordinate]);
103
84
  }
104
-
105
85
  setTitle(title) {
106
86
  this._runCommand("setTitle", [title]);
107
87
  }
108
-
109
88
  setTitleColor(color) {
110
89
  this._runCommand("setTitleColor", [(0, _reactNative.processColor)(color)]);
111
90
  }
112
-
113
91
  setSubTitle(subtitle) {
114
92
  this._runCommand("setSubTitle", [subtitle]);
115
93
  }
116
-
117
94
  setPoiType(type) {
118
95
  this._runCommand("setPoiType", [type]);
119
96
  }
120
-
121
97
  setIcon(icon) {
122
98
  let uri = _reactNative.Image.resolveAssetSource(icon.uri) || {
123
99
  uri: icon.uri
124
100
  };
125
-
126
101
  this._runCommand("setIcon", [{
127
102
  uri: uri.uri
128
103
  }]);
129
104
  }
130
-
131
105
  setZIndex(zIndex) {
132
106
  this._runCommand("setZIndex", [zIndex]);
133
- } // setVisible(visible) {
107
+ }
108
+ // setVisible(visible) {
134
109
  // this._runCommand("setVisible", [visible])
135
110
  // }
136
-
137
-
138
111
  setUserData(userData) {
139
112
  this._runCommand("setUserData", [userData]);
140
113
  }
141
-
142
114
  _getHandle() {
143
115
  return (0, _reactNative.findNodeHandle)(this.poi);
144
116
  }
145
-
146
117
  _runCommand(name, args) {
147
- switch (_reactNative.Platform.OS) {
148
- case 'android':
149
- {
150
- if (!_reactNative.UIManager || typeof _reactNative.UIManager.dispatchViewManagerCommand !== 'function') {
151
- return;
152
- }
153
-
154
- const commandId = this._uiManagerCommand(name);
155
-
156
- if (commandId == null) {
157
- return;
158
- }
159
-
160
- _reactNative.UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);
161
-
162
- break;
163
- }
164
-
165
- case 'ios':
166
- this._mapManagerCommand(name)(this._getHandle(), ...args);
167
-
168
- break;
169
-
170
- default:
171
- break;
172
- }
118
+ return (0, _ViewManagerCommand.runViewManagerCommand)({
119
+ componentName: 'RMFPOI',
120
+ moduleName: 'RMFPOI',
121
+ commandName: name,
122
+ args,
123
+ reactTag: this._getHandle()
124
+ });
173
125
  }
174
-
175
- _uiManagerCommand(name) {
176
- const uiManager = _reactNative.UIManager || _reactNative.NativeModules.UIManager;
177
- const componentName = "RMFPOI";
178
-
179
- if (!uiManager) {
180
- return null;
181
- }
182
-
183
- if (!uiManager.getViewManagerConfig) {
184
- // RN < 0.58
185
- const legacyConfig = uiManager[componentName];
186
- return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;
187
- } // RN >= 0.58
188
-
189
-
190
- const config = uiManager.getViewManagerConfig(componentName);
191
- return config && config.Commands ? config.Commands[name] : null;
192
- }
193
-
194
- _mapManagerCommand(name) {
195
- return _reactNative.NativeModules[`RMFPOI`][name];
196
- }
197
-
198
126
  render() {
199
127
  let icon = {};
200
-
201
128
  if (this.props.icon) {
202
129
  let uri = _reactNative.Image.resolveAssetSource(this.props.icon.uri) || {
203
130
  uri: this.props.icon.uri
@@ -206,16 +133,14 @@ class MFPOI extends _react.default.Component {
206
133
  uri: uri.uri
207
134
  };
208
135
  }
209
-
210
- return /*#__PURE__*/_react.default.createElement(RMFPOI, _extends({}, this.props, {
136
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(RMFPOI, {
137
+ ...this.props,
211
138
  icon: icon,
212
139
  ref: this._ref,
213
140
  onPress: this._onPress
214
- }));
141
+ });
215
142
  }
216
-
217
143
  }
218
-
219
144
  exports.MFPOI = MFPOI;
220
145
  MFPOI.propTypes = propTypes;
221
146
  var RMFPOI = (0, _reactNative.requireNativeComponent)(`RMFPOI`, MFPOI);
@@ -1 +1 @@
1
- {"version":3,"names":["viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","title","string","titleColor","ColorPropType","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","processColor","setSubTitle","setPoiType","type","setIcon","Image","resolveAssetSource","setZIndex","setUserData","_getHandle","findNodeHandle","name","args","Platform","OS","UIManager","dispatchViewManagerCommand","commandId","_uiManagerCommand","_mapManagerCommand","uiManager","NativeModules","componentName","getViewManagerConfig","legacyConfig","Commands","config","render","RMFPOI","requireNativeComponent"],"sources":["MFPOI.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport React from 'react';\r\nimport {ViewPropTypes, ColorPropType} from 'deprecated-react-native-prop-types';\r\nimport {\r\n requireNativeComponent,\r\n Platform,\r\n Image,\r\n UIManager,\r\n NativeModules,\r\n findNodeHandle,\r\n processColor\r\n} from 'react-native';\r\n\r\n// if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)\r\nconst viewPropTypes = ViewPropTypes || View.propTypes;\r\n\r\nconst propTypes = {\r\n ...viewPropTypes,\r\n\r\n /**\r\n * The coordinate for the POI.\r\n */\r\n coordinate: PropTypes.shape({\r\n latitude: PropTypes.number.isRequired,\r\n longitude: PropTypes.number.isRequired,\r\n }).isRequired,\r\n\r\n /**\r\n * The title of the POI.\r\n */\r\n title: PropTypes.string,\r\n\r\n /**\r\n * The color of the title.\r\n */\r\n titleColor: ColorPropType,\r\n\r\n /**\r\n * The subtile of the POI.\r\n */\r\n subtitle: PropTypes.string,\r\n\r\n /**\r\n * The type of POI\r\n */\r\n //poiType: PropTypes.oneOf(['cafe', 'atm', 'bank']),\r\n poiType: PropTypes.string,\r\n\r\n /**\r\n * POI icon to render.\r\n */\r\n icon: PropTypes.shape({\r\n uri: PropTypes.any.isRequired\r\n }),\r\n\r\n /**\r\n * zIndex\r\n */\r\n zIndex: PropTypes.number,\r\n\r\n /**\r\n * visible\r\n */\r\n //TODO\r\n // visible: PropTypes.bool,\r\n\r\n /**\r\n * userData\r\n */\r\n userData:PropTypes.object,\r\n\r\n /**\r\n * Callback that is called when the user presses on the POI\r\n */\r\n onPress: PropTypes.func,\r\n};\r\n\r\nclass MFPOI extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this._onPress = this._onPress.bind(this)\r\n this._ref = this._ref.bind(this)\r\n }\r\n\r\n _onPress(event) {\r\n event.stopPropagation();\r\n if (this.props.onPress) {\r\n this.props.onPress(event);\r\n }\r\n }\r\n\r\n _ref(ref) {\r\n this.poi = ref;\r\n }\r\n\r\n setCoordinate(coordinate) {\r\n this._runCommand(\"setCoordinate\", [coordinate])\r\n }\r\n setTitle(title) {\r\n this._runCommand(\"setTitle\", [title])\r\n }\r\n setTitleColor(color) {\r\n this._runCommand(\"setTitleColor\", [processColor(color)])\r\n }\r\n setSubTitle(subtitle) {\r\n this._runCommand(\"setSubTitle\", [subtitle])\r\n }\r\n setPoiType(type) {\r\n this._runCommand(\"setPoiType\", [type])\r\n }\r\n setIcon(icon) {\r\n let uri = Image.resolveAssetSource(icon.uri) || { uri: icon.uri }\r\n this._runCommand(\"setIcon\", [ { uri: uri.uri } ])\r\n }\r\n setZIndex(zIndex) {\r\n this._runCommand(\"setZIndex\", [zIndex])\r\n }\r\n // setVisible(visible) {\r\n // this._runCommand(\"setVisible\", [visible])\r\n // }\r\n setUserData(userData) {\r\n this._runCommand(\"setUserData\", [userData])\r\n }\r\n\r\n _getHandle() {\r\n return findNodeHandle(this.poi);\r\n }\r\n\r\n\r\n _runCommand(name, args) {\r\n switch (Platform.OS) {\r\n case 'android': {\r\n if (!UIManager || typeof UIManager.dispatchViewManagerCommand !== 'function') {\r\n return;\r\n }\r\n\r\n const commandId = this._uiManagerCommand(name);\r\n if (commandId == null) {\r\n return;\r\n }\r\n\r\n UIManager.dispatchViewManagerCommand(this._getHandle(), commandId, args);\r\n break;\r\n }\r\n\r\n case 'ios':\r\n this._mapManagerCommand(name)(this._getHandle(), ...args);\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n }\r\n\r\n _uiManagerCommand(name) {\r\n const uiManager = UIManager || NativeModules.UIManager;\r\n const componentName = \"RMFPOI\";\r\n\r\n if (!uiManager) {\r\n return null;\r\n }\r\n\r\n if (!uiManager.getViewManagerConfig) {\r\n // RN < 0.58\r\n const legacyConfig = uiManager[componentName];\r\n return legacyConfig && legacyConfig.Commands ? legacyConfig.Commands[name] : null;\r\n }\r\n\r\n // RN >= 0.58 \r\n const config = uiManager.getViewManagerConfig(componentName);\r\n return config && config.Commands ? config.Commands[name] : null;\r\n }\r\n \r\n _mapManagerCommand(name) {\r\n return NativeModules[`RMFPOI`][name];\r\n }\r\n\r\n render() {\r\n let icon = {}\r\n if (this.props.icon) {\r\n let uri = Image.resolveAssetSource(this.props.icon.uri) || {uri: this.props.icon.uri}\r\n icon = { uri: uri.uri }\r\n }\r\n return <RMFPOI\r\n {...this.props}\r\n icon={icon}\r\n ref={this._ref}\r\n onPress={this._onPress}\r\n />;\r\n }\r\n}\r\n\r\nMFPOI.propTypes = propTypes;\r\n\r\nvar RMFPOI = requireNativeComponent(`RMFPOI`, MFPOI);\r\n\r\nexport {MFPOI}\r\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAUA;AACA,MAAMA,aAAa,GAAGC,6CAAA,IAAiBC,IAAI,CAACC,SAA5C;AAEA,MAAMA,SAAS,GAAG,EAChB,GAAGH,aADa;;EAGd;AACJ;AACA;EACEI,UAAU,EAAEC,kBAAA,CAAUC,KAAV,CAAgB;IAC1BC,QAAQ,EAAEF,kBAAA,CAAUG,MAAV,CAAiBC,UADD;IAE1BC,SAAS,EAAEL,kBAAA,CAAUG,MAAV,CAAiBC;EAFF,CAAhB,EAGTA,UATa;;EAWhB;AACF;AACA;EACEE,KAAK,EAAEN,kBAAA,CAAUO,MAdD;;EAgBhB;AACF;AACA;EACEC,UAAU,EAAEC,6CAnBI;;EAqBhB;AACF;AACA;EACEC,QAAQ,EAAEV,kBAAA,CAAUO,MAxBJ;;EA0BhB;AACF;AACA;EACE;EACAI,OAAO,EAAEX,kBAAA,CAAUO,MA9BH;;EAgChB;AACF;AACA;EACEK,IAAI,EAAEZ,kBAAA,CAAUC,KAAV,CAAgB;IACpBY,GAAG,EAAEb,kBAAA,CAAUc,GAAV,CAAcV;EADC,CAAhB,CAnCU;;EAuChB;AACF;AACA;EACEW,MAAM,EAAEf,kBAAA,CAAUG,MA1CF;;EA4ChB;AACF;AACA;EACE;EACA;;EAEA;AACF;AACA;EACEa,QAAQ,EAAChB,kBAAA,CAAUiB,MArDH;;EAuDhB;AACF;AACA;EACEC,OAAO,EAAElB,kBAAA,CAAUmB;AA1DH,CAAlB;;AA6DA,MAAMC,KAAN,SAAoBC,cAAA,CAAMC,SAA1B,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AxC,GAAsE,IAA7E;IACD,CAZqB,CActB;;;IACA,MAAMe,MAAM,GAAGN,SAAS,CAACG,oBAAV,CAA+BD,aAA/B,CAAf;IACA,OAAOI,MAAM,IAAIA,MAAM,CAACD,QAAjB,GAA4BC,MAAM,CAACD,QAAP,CAAgBd,IAAhB,CAA5B,GAAoD,IAA3D;EACD;;EAEDQ,kBAAkB,CAACR,IAAD,EAAO;IACvB,OAAOU,0BAAA,CAAe,QAAf,EAAwBV,IAAxB,CAAP;EACD;;EAEDgB,MAAM,GAAG;IACP,IAAIpD,IAAI,GAAG,EAAX;;IACA,IAAI,KAAKY,KAAL,CAAWZ,IAAf,EAAqB;MACnB,IAAIC,GAAG,GAAG6B,kBAAA,CAAMC,kBAAN,CAAyB,KAAKnB,KAAL,CAAWZ,IAAX,CAAgBC,GAAzC,KAAiD;QAACA,GAAG,EAAE,KAAKW,KAAL,CAAWZ,IAAX,CAAgBC;MAAtB,CAA3D;MACAD,IAAI,GAAG;QAAEC,GAAG,EAAEA,GAAG,CAACA;MAAX,CAAP;IACD;;IACD,oBAAO,6BAAC,MAAD,eACD,KAAKW,KADJ;MAEL,IAAI,EAAEZ,IAFD;MAGL,GAAG,EAAE,KAAKe,IAHL;MAIL,OAAO,EAAE,KAAKF;IAJT,GAAP;EAMD;;AAhHiC;;;AAmHpCL,KAAK,CAACtB,SAAN,GAAkBA,SAAlB;AAEA,IAAImE,MAAM,GAAG,IAAAC,mCAAA,EAAwB,QAAxB,EAAiC9C,KAAjC,CAAb"}
1
+ {"version":3,"names":["_propTypes","_interopRequireDefault","require","_react","_deprecatedReactNativePropTypes","_ViewManagerCommand","_reactNative","_jsxRuntime","e","__esModule","default","viewPropTypes","ViewPropTypes","View","propTypes","coordinate","PropTypes","shape","latitude","number","isRequired","longitude","title","string","titleColor","ColorPropType","subtitle","poiType","icon","uri","any","zIndex","userData","object","onPress","func","MFPOI","React","Component","constructor","props","_onPress","bind","_ref","event","stopPropagation","ref","poi","setCoordinate","_runCommand","setTitle","setTitleColor","color","processColor","setSubTitle","setPoiType","type","setIcon","Image","resolveAssetSource","setZIndex","setUserData","_getHandle","findNodeHandle","name","args","runViewManagerCommand","componentName","moduleName","commandName","reactTag","render","jsx","RMFPOI","exports","requireNativeComponent"],"sourceRoot":"..\\..\\..\\src","sources":["components/MFPOI.js"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAKsB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtB;AACA,MAAMG,aAAa,GAAGC,6CAAa,IAAIC,IAAI,CAACC,SAAS;AAErD,MAAMA,SAAS,GAAG;EAChB,GAAGH,aAAa;EAEd;AACJ;AACA;EACEI,UAAU,EAAEC,kBAAS,CAACC,KAAK,CAAC;IAC1BC,QAAQ,EAAEF,kBAAS,CAACG,MAAM,CAACC,UAAU;IACrCC,SAAS,EAAEL,kBAAS,CAACG,MAAM,CAACC;EAC9B,CAAC,CAAC,CAACA,UAAU;EAEb;AACF;AACA;EACEE,KAAK,EAAEN,kBAAS,CAACO,MAAM;EAEvB;AACF;AACA;EACEC,UAAU,EAAEC,6CAAa;EAEzB;AACF;AACA;EACEC,QAAQ,EAAEV,kBAAS,CAACO,MAAM;EAE1B;AACF;AACA;EACE;EACAI,OAAO,EAAEX,kBAAS,CAACO,MAAM;EAEzB;AACF;AACA;EACEK,IAAI,EAAEZ,kBAAS,CAACC,KAAK,CAAC;IACpBY,GAAG,EAAEb,kBAAS,CAACc,GAAG,CAACV;EACrB,CAAC,CAAC;EAEF;AACF;AACA;EACEW,MAAM,EAAEf,kBAAS,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