mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 19:31:54 +03:00
revert back req nav
This commit is contained in:
parent
f78e45ed7b
commit
e904316f37
@ -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,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
@ -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}
|
||||
|
@ -26,13 +26,6 @@ class ApplicationScreen extends Component {
|
||||
isShowToastNotification: false,
|
||||
};
|
||||
}
|
||||
componentDidMount() {
|
||||
const { incomingNavigationRequest } = this.props;
|
||||
|
||||
if (incomingNavigationRequest) {
|
||||
navigate(incomingNavigationRequest);
|
||||
}
|
||||
}
|
||||
|
||||
_handleOnHideToastNotification = () => {
|
||||
const { dispatch } = this.props;
|
||||
|
Loading…
Reference in New Issue
Block a user