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

StatusBar.setHidden(true) 时状态栏始终有个色块。 #38

Closed
treemore opened this issue Jun 28, 2018 · 7 comments
Closed

StatusBar.setHidden(true) 时状态栏始终有个色块。 #38

treemore opened this issue Jun 28, 2018 · 7 comments

Comments

@treemore
Copy link

treemore commented Jun 28, 2018

StatusBar.setHidden(true) �生效了,但是状态栏那个位置始终有个色块,正常的状态栏确实隐藏了,下拉一下可以拉下来。
react-native-navigation-hybrid 版本是0.7.14.

android版本有这个问题。 ios 没有

@treemore
Copy link
Author

以前的某个版本应该没有这个问题的。
然后也试了一个不用这个路由的项目。
StatusBar.setHidden(true) 没有那个色块。 应该不是react-native的问题。

@treemore
Copy link
Author

很容易重现。 任何一个安卓手机 StatusBar.setHidden(true) 就能看到状态栏上面的色块了

@listenzz
Copy link
Owner

能否给个图呢?色块和导航栏是一个颜色不?

@NrqhEIcsRi004
Copy link

好像是路由的问题,如果使用push打开的页面就隐藏不了状态栏。

@NrqhEIcsRi004
Copy link

在componentDidAppear设置就好了

@treemore
Copy link
Author

加到componentDidAppear里面生效了。。。

@NrqhEIcsRi004
Copy link

4.4.4 上面没有隐藏成功...

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

No branches or pull requests

3 participants