OGeek|极客世界-中国程序员成长平台

标题: ios - Ex-Navigator (ExponentJS) 中的导航栏格式 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 18:21
标题: ios - Ex-Navigator (ExponentJS) 中的导航栏格式

我正在尝试在 React Native 中格式化 ExponentJS Ex-Navigator 的底部边框。在我的一生中,我无法弄清楚如何隐藏 NavigationBar 的底部边框。



Best Answer-推荐答案


无需覆盖库中的硬编码样式

您可以在 ExNavigator 组件中应用样式,如下所示:

<ExNavigator
  navigationBarStyle={{ borderBottomColor: 'transparent' }}
  ...
  />

你也可以在这里设置backgroundColorborderBottomWidth

关于ios - Ex-Navigator (ExponentJS) 中的导航栏格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35097471/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4