Skip to content

Commit

Permalink
Merge pull request #99 from KhalisFoundation/fix-blank-screen
Browse files Browse the repository at this point in the history
fix: unsafe lifecycle components
  • Loading branch information
amitojsingh authored Apr 26, 2022
2 parents f837cda + 817728b commit b657491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion screens/EditBaniOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion screens/Reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b657491

Please sign in to comment.