在导航时在我的标题中隐藏了bottomBorder之后,它显示了底线

问题描述 投票:0回答:1

我已经隐藏了标题的borderBottom行。它可以隐藏,并且可以与以下代码一起正常工作。

但是在向后导航时会显示边界线。如何在退回导航的同时删除此信息

headerStyle: { 
  backgroundColor: '#fff',
  borderBottomWidth: 0, 
  borderColor:'transparent', 
  elevation: 0, 
  shadowColor: 'transparent', 
  shadowOpacity: 0,
}

enter image description here

react-native stylesheet react-native-navigation
1个回答
0
投票

尝试一下:borderBottom: none!important;

© www.soinside.com 2019 - 2024. All rights reserved.