We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考代码,我理解只要维护一个回退的堆栈就可以在点击back健的时候设置回到上个activity?
// 设置回退的堆栈 var _navigator; BackAndroid.addEventListener('hardwareBackPress', function() { if (_navigator && _navigator.getCurrentRoutes().length > 1) { _navigator.pop(); return true; } return false; });
但是我设置了之后发现点击back都是退出app,@race604,能不能大致说下这种回退返回上一页是怎么做的?
The text was updated successfully, but these errors were encountered:
你理解是对的,但是要在 Activity 中加入这些代码:https://github.com/race604/ZhiHuDaily-React-Native/blob/master/android%2Fapp%2Fsrc%2Fmain%2Fjava%2Fcom%2Frace604%2Fzhihu%2Fdaily%2FMainActivity.java#L85-L91
Sorry, something went wrong.
谢谢,弄出来了
No branches or pull requests
参考代码,我理解只要维护一个回退的堆栈就可以在点击back健的时候设置回到上个activity?
但是我设置了之后发现点击back都是退出app,@race604,能不能大致说下这种回退返回上一页是怎么做的?
The text was updated successfully, but these errors were encountered: