From 34218b7be6938fee17db5c70f24d8e6970eb2228 Mon Sep 17 00:00:00 2001 From: Miguel Alatzar Date: Thu, 7 Nov 2019 13:56:11 -0700 Subject: [PATCH] Use componentDidUpdate (#3530) --- .../notification_settings_mobile_base.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/screens/settings/notification_settings_mobile/notification_settings_mobile_base.js b/app/screens/settings/notification_settings_mobile/notification_settings_mobile_base.js index 9eedfc43a..cf516d0a0 100644 --- a/app/screens/settings/notification_settings_mobile/notification_settings_mobile_base.js +++ b/app/screens/settings/notification_settings_mobile/notification_settings_mobile_base.js @@ -47,9 +47,9 @@ export default class NotificationSettingsMobileBase extends PureComponent { this.navigationEventListener = Navigation.events().bindComponent(this); } - componentWillReceiveProps(nextProps) { - if (this.props.theme !== nextProps.theme) { - setNavigatorStyles(this.props.componentId, nextProps.theme); + componentDidUpdate(prevProps) { + if (this.props.theme !== prevProps.theme) { + setNavigatorStyles(this.props.componentId, this.props.theme); } }