From af8d4612aa70c545bc98ece6b050a5f123446200 Mon Sep 17 00:00:00 2001 From: Shaoxing Wang Date: Fri, 29 Dec 2017 17:19:19 +0800 Subject: [PATCH] Fix wrong logic when back pressed (#2735) return true when stack poped successfully --- dist/Router.js | 2 +- src/Router.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/Router.js b/dist/Router.js index 8cbba259a..80a6227c9 100644 --- a/dist/Router.js +++ b/dist/Router.js @@ -29,7 +29,7 @@ App=(0,_native.observer)(_class=(_temp2=_class2=function(_React$Component){_inhe -onBackPress=function(){return!_navigationStore2.default.pop();},_this. +onBackPress=function(){return _navigationStore2.default.pop();},_this. handleDeepURL=function(e){return _this.parseDeepURL(e.url);},_this. diff --git a/src/Router.js b/src/Router.js index 8d4949391..be4977c01 100644 --- a/src/Router.js +++ b/src/Router.js @@ -29,7 +29,7 @@ class App extends React.Component { Linking.removeEventListener('url', this.handleDeepURL); } - onBackPress = () => !navigationStore.pop(); + onBackPress = () => navigationStore.pop(); handleDeepURL = (e) => this.parseDeepURL(e.url);