Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 0286b8d

Browse files
author
soliury
committed
fix bugs: #41
1 parent e072707 commit 0286b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/configs/Router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Router {
2727
BackAndroid.addEventListener('hardwareBackPress', ()=> {
2828
const routesList = this.navigator.getCurrentRoutes();
2929
const currentRoute = routesList[routesList.length - 1];
30-
if (currentRoute !== 'home') {
30+
if (currentRoute.name !== 'home') {
3131
navigator.pop();
3232
return true;
3333
}

0 commit comments

Comments
 (0)