Skip to content
New issue

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

RN的app按home键进入后台后,再点开app,会重启app。正常情况下,应该是回到home之前所在的界面 #40

Open
wuyunqiang opened this issue Jan 31, 2018 · 1 comment
Labels

Comments

@wuyunqiang
Copy link
Owner

wuyunqiang commented Jan 31, 2018

RN的app按home键进入后台后,再点开app,会重启app。正常情况下,应该是回到home之前所在的界面。
原因:这个问题是因为mainActivity的启动模式为singletask或者singleinstance导致的。
解决:修改mainActivity的启动模式为默认模式即可。
activity启动模式你真的了解吗?

@chj-damon
Copy link

请问RN里面怎么改这个启动模式?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants