Navigate to the last visited route #112

Merged
akinwale merged 2 commits from save-last-route into master 2020-01-20 21:40:18 +01:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 96763cdec7 - Show all commits

View file

@ -10,6 +10,7 @@
"__": true
},
"rules": {
"no-console": 2,
"no-multi-spaces": 0,
"new-cap": 0,
"prefer-promise-reject-errors": 0,

View file

@ -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)) {