react-native-maps 1.21.0-alpha.21 → 1.21.0-alpha.23
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.
- package/ios/AirMaps/RNMapsMapView.mm +0 -1
- package/lib/MapMarker.d.ts +1 -1
- package/lib/MapMarker.js +5 -3
- package/package.json +1 -1
|
@@ -153,7 +153,6 @@ using namespace facebook::react;
|
|
|
153
153
|
};
|
|
154
154
|
_view.onChange = [self](NSDictionary* dictionary) {
|
|
155
155
|
if (_eventEmitter) {
|
|
156
|
-
|
|
157
156
|
NSDictionary* regionDict = dictionary[@"region"];
|
|
158
157
|
auto mapViewEventEmitter = std::static_pointer_cast<RNMapsMapViewEventEmitter const>(_eventEmitter);
|
|
159
158
|
facebook::react::RNMapsMapViewEventEmitter::OnRegionChange data = {
|
package/lib/MapMarker.d.ts
CHANGED
|
@@ -295,7 +295,7 @@ export declare class MapMarker extends React.Component<MapMarkerProps> {
|
|
|
295
295
|
getUIManagerCommand: (name: string) => UIManagerCommand;
|
|
296
296
|
static Animated: Animated.AnimatedComponent<typeof MapMarker>;
|
|
297
297
|
private marker;
|
|
298
|
-
private fabricMarker
|
|
298
|
+
private fabricMarker?;
|
|
299
299
|
constructor(props: MapMarkerProps);
|
|
300
300
|
setNativeProps(props: Partial<NativeProps>): void;
|
|
301
301
|
showCallout(): void;
|
package/lib/MapMarker.js
CHANGED
|
@@ -36,7 +36,7 @@ class MapMarker extends React.Component {
|
|
|
36
36
|
getUIManagerCommand;
|
|
37
37
|
static Animated;
|
|
38
38
|
marker;
|
|
39
|
-
fabricMarker =
|
|
39
|
+
fabricMarker = undefined;
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
|
42
42
|
this.marker = React.createRef();
|
|
@@ -45,8 +45,6 @@ class MapMarker extends React.Component {
|
|
|
45
45
|
this.setCoordinates = this.setCoordinates.bind(this);
|
|
46
46
|
this.redrawCallout = this.redrawCallout.bind(this);
|
|
47
47
|
this.animateMarkerToCoordinate = this.animateMarkerToCoordinate.bind(this);
|
|
48
|
-
const provider = this.context;
|
|
49
|
-
this.fabricMarker = provider !== ProviderConstants_1.PROVIDER_GOOGLE && react_native_1.Platform.OS === 'ios';
|
|
50
48
|
}
|
|
51
49
|
setNativeProps(props) {
|
|
52
50
|
// @ts-ignore
|
|
@@ -116,6 +114,10 @@ class MapMarker extends React.Component {
|
|
|
116
114
|
}
|
|
117
115
|
render() {
|
|
118
116
|
const { stopPropagation = false } = this.props;
|
|
117
|
+
if (this.fabricMarker === undefined) {
|
|
118
|
+
const provider = this.context;
|
|
119
|
+
this.fabricMarker = provider !== ProviderConstants_1.PROVIDER_GOOGLE && react_native_1.Platform.OS === 'ios';
|
|
120
|
+
}
|
|
119
121
|
let icon;
|
|
120
122
|
if (this.props.icon) {
|
|
121
123
|
icon = react_native_1.Image.resolveAssetSource(this.props.icon) || {};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.21.0-alpha.
|
|
8
|
+
"version": "1.21.0-alpha.23",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|