mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
created a flag for outo routing
This commit is contained in:
parent
625c72456e
commit
f6a982ed51
@ -27,6 +27,7 @@ const RootContainer = () => (WrappedComponent) => {
|
||||
this.state = {
|
||||
wrappedComponentStates: null,
|
||||
appState: AppState.currentState,
|
||||
isNotificationRouted: false,
|
||||
};
|
||||
}
|
||||
|
||||
@ -202,8 +203,11 @@ const RootContainer = () => (WrappedComponent) => {
|
||||
}
|
||||
|
||||
this.pushNavigationTimeout = setTimeout(() => {
|
||||
const { isNotificationRouted } = this.state;
|
||||
|
||||
clearTimeout(this.pushNavigationTimeout);
|
||||
navigation.navigate({ routeName, params, key });
|
||||
if (isNotificationRouted) navigation.navigate({ routeName, params, key });
|
||||
this.setState({ isNotificationRouted: true });
|
||||
}, 4000);
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user