react-native-maps 1.21.0-alpha.21 → 1.21.0-alpha.22

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.
@@ -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 = {
@@ -298,6 +298,7 @@ export declare class MapMarker extends React.Component<MapMarkerProps> {
298
298
  private fabricMarker;
299
299
  constructor(props: MapMarkerProps);
300
300
  setNativeProps(props: Partial<NativeProps>): void;
301
+ componentDidMount(): void;
301
302
  showCallout(): void;
302
303
  hideCallout(): void;
303
304
  setCoordinates(coordinate: LatLng): void;
package/lib/MapMarker.js CHANGED
@@ -45,13 +45,15 @@ 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
53
51
  this.marker.current?.setNativeProps(props);
54
52
  }
53
+ componentDidMount() {
54
+ const provider = this.context;
55
+ this.fabricMarker = provider !== ProviderConstants_1.PROVIDER_GOOGLE && react_native_1.Platform.OS === 'ios';
56
+ }
55
57
  showCallout() {
56
58
  if (this.marker.current) {
57
59
  if (this.fabricMarker) {
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.21",
8
+ "version": "1.21.0-alpha.22",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",