Use componentDidUpdate (#3530)

This commit is contained in:
Miguel Alatzar 2019-11-07 13:56:11 -07:00 committed by CJ
parent 7f2062321c
commit 34218b7be6

View file

@ -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);
}
}