React本地使用Android OS栏下的完整垂直区域
我的应用程序的顶部在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:
However, the same emulator running Google Maps shows that their app is able to utilize the vertical space behind the Android OS bar:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论