listenzz / hybrid-navigation

React Native Navigation that supports seamless navigation between Native and React.
MIT License
325 stars 37 forks source link

topBarHidden 设置为true ,安卓没问题,iOS没有效果,想问事怎么回事 #256

Closed Mscynol closed 7 months ago

Mscynol commented 7 months ago
image image image

还烦请大神看一下,是不是哪里我配置错了

Mscynol commented 7 months ago
image

这是我的info 配置,第一张放错了,放的是你的demo的截图

Mscynol commented 7 months ago

iOS 显示图

image

android 显示图

image
listenzz commented 7 months ago

把你的 demo 直接发我吧

Mscynol commented 7 months ago

https://gitee.com/mscynol/easy.git

listenzz commented 7 months ago

事实上 topBar 已经移除,你看到的空白是 SafeAreaView 预留的,移除即可。

另外需要 ScrollView 的 contentInsetAdjustmentBehavior 设置成 never,否则 ScrollView 上面会留白。

Mscynol commented 7 months ago

是的,IOS端但是我又发现一个问题就是如果topBarHidden: true

image

这个勾选后,statusbar 也消失了,topBarHidden: true设置true以后也影响statusbar嘛,在IOS可以单独设置StatusBar的背景颜色不

Mscynol commented 7 months ago

hybrid-navigation是否以后也可以自动支持异形屏幕的支持,就跟safeareaview那样

listenzz commented 7 months ago

下面要设置为 YES, StatusBar 才可以根据页面配置变化

image

在 iOS, StatusBar 的背景颜色是不可以设置的,只有前景色可以设置为黑或白

hybrid-navigation是否以后也可以自动支持异形屏幕的支持,就跟safeareaview那样

在不隐藏 TopBar 的情况下,已经做了必要的支持,当隐藏 TopBar 时,默认留给开发者自己适配

Mscynol commented 7 months ago

好的,非常感谢

khalisafkari commented 7 months ago

I've been using GitHub for a long time and many of the maintainers too, sometimes they don't care about those who use the code, they even ignore the users who use the code, but I see you are very supportive and helpful. users in using your code, this is very rare, but you did it, I really hope one day every repo manager does what you do, I wish you every success @listenzz