美文网首页
react-navigation createStackNavi

react-navigation createStackNavi

作者: ugpass | 来源:发表于2020-09-13 15:00 被阅读0次

createStackNavigator
https://stackoverflow.com/questions/51181965/react-navigation-header-has-a-faint-line

<Stack.Navigator
        screenOptions={{
          headerStyle: {
            backgroundColor: currentTheme.themeColor,
            borderBottomWidth: 0,
            elevation: 0,//去掉安卓导航下面白线
            shadowOpacity: 0,//去掉iOS导航下面白线
          },
          headerTintColor: '#fff',
          headerTitleStyle: {
            fontWeight: 'bold',
            alignSelf: "center",
          }, 
        }} 
      >

** createBottomTabNavigator** 去掉tabbar上面的白线
https://stackoverflow.com/questions/60337002/white-line-above-bottomtabnavigator-in-react-native

tabBarOptions={{ 
    style: styles.container
}}

const styles = StyleSheet.create({
  container:{ 
    backgroundColor: currentTheme.themeColor,
    borderTopWidth: 0
  }
})

相关文章

网友评论

      本文标题:react-navigation createStackNavi

      本文链接:https://www.haomeiwen.com/subject/sdtirktx.html