React本地CLI隐藏状态栏在景观模式下
我有问题,如何在景观模式下隐藏状态栏? 在肖像模式下它的作品。
我要掩盖状态栏:
<StatusBar hidden={true} />
或者
StatusBar.setHidden(true);
当我调用模态屏幕以显示状态栏回来的全屏模式时。为什么或如何解决?
"react": "17.0.2",
"react-native": "0.67.4",
I have a problem, how can I hide a status bar in landscape mode?
In portrait mode its works.
I'm hiding the status bar by either:
<StatusBar hidden={true} />
or
StatusBar.setHidden(true);
But when I call my modal screen to show fullscreen mode that statusbar comes back. Why or how can I fix that?
"react": "17.0.2",
"react-native": "0.67.4",
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请找到以下代码:
希望它对您有所帮助!
Please find the below code:
Hope it will help you!