From 21757e7c65a4f11ae6f4daaa18274f66166991d8 Mon Sep 17 00:00:00 2001 From: NightLiveAppDev <105202693+NightLiveAppDev@users.noreply.github.com> Date: Mon, 15 May 2023 18:20:08 +0200 Subject: [PATCH 1/2] Update package.json Peer Dependency von react-native-maps auf v1.3.2 aktualisiert. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 55bf352..f6692e1 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,6 @@ }, "peerDependencies": { "prop-types": "15.7.2", - "react-native-maps": "^0.25.0" + "react-native-maps": "^1.3.2" } } From 8da990a425179a7537d9dda949b994fc900d0eee Mon Sep 17 00:00:00 2001 From: NightLiveAppDev <105202693+NightLiveAppDev@users.noreply.github.com> Date: Mon, 15 May 2023 18:34:18 +0200 Subject: [PATCH 2/2] UNSAFE_X Updated ClusteredMapView.js Fixed Warning --- ClusteredMapView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ClusteredMapView.js b/ClusteredMapView.js index e19ac85..2db8b40 100644 --- a/ClusteredMapView.js +++ b/ClusteredMapView.js @@ -43,12 +43,12 @@ export default class ClusteredMapView extends PureComponent { this.clusterize(this.props.data) } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (this.props.data !== nextProps.data) this.clusterize(nextProps.data) } - componentWillUpdate(nextProps, nextState) { + UNSAFE_componentWillUpdate(nextProps, nextState) { if (!this.isAndroid && this.props.animateClusters && this.clustersChanged(nextState)) LayoutAnimation.configureNext(this.props.layoutAnimationConf) }