CN1 how to deal with the home indicator (iPhone X and such)

試著忘記壹切 提交于 2020-02-01 05:39:05

问题


When we have to deal with (native) device specific objects on the display (such as the home indicator in iPhone X) in case of having a proper layout of our app (avoiding those objects violate the layout), should I adapt the layout in native code or in CN1 specific code? What would you suggest?


回答1:


Most of our effort was around the notch and not so much on the home button but we probably should add support for iOS's safe area API. Although technically it's a pretty horrible API.

It might be better to add some device detection to the tabs component and add some padding in the bottom of the tabs by default. We can probably do it if you file an issue, you can do this manually too using a library such as this.



来源:https://stackoverflow.com/questions/53871747/cn1-how-to-deal-with-the-home-indicator-iphone-x-and-such

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!