From 817728b6a4c124e0c9cefe7c3aedbf45f8d39794 Mon Sep 17 00:00:00 2001 From: Amitoj Singh Date: Tue, 1 Mar 2022 04:39:07 -0500 Subject: [PATCH] fix: rename unsafe lifecycle --- screens/EditBaniOrder.js | 2 +- screens/Reader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/screens/EditBaniOrder.js b/screens/EditBaniOrder.js index a388a5d9..4447413b 100644 --- a/screens/EditBaniOrder.js +++ b/screens/EditBaniOrder.js @@ -147,7 +147,7 @@ class Row extends React.Component { }; } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (this.props.active !== nextProps.active) { Animated.timing(this._active, { duration: 300, diff --git a/screens/Reader.js b/screens/Reader.js index 43e0e9f8..0e340d79 100644 --- a/screens/Reader.js +++ b/screens/Reader.js @@ -101,7 +101,7 @@ class Reader extends React.Component { AnalyticsManager.getInstance().trackScreenView(name, this.constructor.name); } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.scrollIndex != -1) { this.scrollToItem(nextProps.scrollIndex); this.props.setScrollIndex(-1);