revert back req nav

This commit is contained in:
ue 2019-12-18 22:01:07 +03:00
parent f78e45ed7b
commit e904316f37
3 changed files with 5 additions and 18 deletions

View File

@ -92,7 +92,6 @@ class ApplicationContainer extends Component {
isIos: Platform.OS !== 'android',
isThemeReady: false,
appState: AppState.currentState,
incomingNavigationRequest: null,
};
}
@ -331,12 +330,10 @@ class ApplicationContainer extends Component {
dispatch(updateUnreadActivityCount(result.unread));
});
if (!some(params, isEmpty)) {
this.setState({
incomingNavigationRequest: {
routeName,
params,
key,
},
navigate({
routeName,
params,
key,
});
}
}
@ -623,7 +620,7 @@ class ApplicationContainer extends Component {
children,
isPinCodeRequire,
} = this.props;
const { isRenderRequire, isReady, isThemeReady, incomingNavigationRequest } = this.state;
const { isRenderRequire, isReady, isThemeReady } = this.state;
return (
children &&
@ -636,7 +633,6 @@ class ApplicationContainer extends Component {
isPinCodeRequire,
isDarkTheme: _isDarkTheme,
locale: selectedLanguage,
incomingNavigationRequest,
})
);
}

View File

@ -29,7 +29,6 @@ const Application = () => {
isRenderRequire,
isThemeReady,
isPinCodeRequire,
incomingNavigationRequest,
}) => {
if (showAnimation || !isReady || !isRenderRequire || !isThemeReady) {
return <Launch />;
@ -46,7 +45,6 @@ const Application = () => {
<PinCode />
</Modal>
<ApplicationScreen
incomingNavigationRequest={incomingNavigationRequest}
isConnected={isConnected}
locale={locale}
toastNotification={toastNotification}

View File

@ -26,13 +26,6 @@ class ApplicationScreen extends Component {
isShowToastNotification: false,
};
}
componentDidMount() {
const { incomingNavigationRequest } = this.props;
if (incomingNavigationRequest) {
navigate(incomingNavigationRequest);
}
}
_handleOnHideToastNotification = () => {
const { dispatch } = this.props;