Navigate to the last visited route #112
2 changed files with 1 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
"__": true
|
||||
},
|
||||
"rules": {
|
||||
"no-console": 2,
|
||||
"no-multi-spaces": 0,
|
||||
"new-cap": 0,
|
||||
"prefer-promise-reject-errors": 0,
|
||||
|
|
|
@ -57,7 +57,6 @@ class SplashScreen extends React.PureComponent {
|
|||
if (launchUrl) {
|
||||
navigateToUri(navigation, transformUrl(launchUrl));
|
||||
} else if (lastRouteInStack) {
|
||||
console.log(lastRouteInStack);
|
||||
// no launch url, check if there's a last route in stack to navigate to.
|
||||
const { route, params } = lastRouteInStack;
|
||||
if (!DrawerRoutes.includes(route) && isURIValid(route)) {
|
||||
|
|
Loading…
Reference in a new issue