ant-design / ant-design-mobile-rn

Ant Design for React Native
https://rn.mobile.ant.design/
MIT License
3.02k stars 609 forks source link

tabBar组件最外层为SafeAreaView,在苹果手机上无法实现沉浸式布局 #1236

Closed wangi4myself closed 2 years ago

wangi4myself commented 2 years ago

What problem does this feature solve?

tabBar在app首页设计时经常要求实现沉浸式布局,但是tabBar最外层包裹了SafeAreaView,无法实现该效果

What does the proposed API look like?

移除最外层SafeAreaView组件。或者通过属性,控制SafeAreaView是否移除

1uokun commented 2 years ago

从demo的使用场景来看,已经实现了渗透式布局

image

如果无法满足某些场景,建议TabBar仅作为按钮组件,参考https://mobile.ant.design/zh/components/tab-bar#faq

BANG88 commented 2 years ago

可以。你看着搞

1uokun commented 2 years ago

从demo的使用场景来看,已经实现了渗透式布局

图片

如果无法满足某些场景,建议将 TabBar 作为按钮,参考https://mobile.ant.design/zh/components/tab-bar#faq

@wangi4myself