Skip to content

Commit

Permalink
Fix wrong logic when back pressed (#2735)
Browse files Browse the repository at this point in the history
return true when stack poped successfully
  • Loading branch information
wsxyeah authored and aksonov committed Dec 29, 2017
1 parent 30f65a5 commit af8d461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit af8d461

Please sign in to comment.