React本地使用Android OS栏下的完整垂直区域

发布于 2025-01-26 11:34:45 字数 643 浏览 1 评论 0原文

我的应用程序的顶部在Android OS栏周围有一个宽敞的空白空间。图为官方Android Studio Emulator作为Pixel 5 API 30运行我的应用程序:

//i.sstatic.net/idqyj.png“ alt =“我的应用程序的顶部”>

但是,运行Google Maps的同一模拟器显示他们的应用程序能够利用Android OS Bar后面的垂直空间:

我如何在React Native中完成此操作?


注意:我同一应用的iOS构建实际上确实利用了iOS OS栏下的垂直区域,类似于地图屏幕截图中显示的内容。我不必故意选择行为,这似乎是iOS 13+的默认

The top of my app has a large empty space around the Android OS bar. Pictured is the official Android Studio emulator as a Pixel 5 API 30 running my app:

Top of my application

However, the same emulator running Google Maps shows that their app is able to utilize the vertical space behind the Android OS bar:

enter image description here

How might I accomplish this in React Native?


Note: the iOS build of my same app does in fact make use of the vertical area under the iOS OS bar, similar to what is shown in the Maps screenshot. I did not have to deliberately choose the behavior, it just seems to be the default for iOS 13+

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文