in React-native, How to change the styles of NavigatorIOS

后端 未结 2 837
鱼传尺愫
鱼传尺愫 2021-02-19 23:14

in react-native,how to change the styles of NavigatorIOS,such as backgroundColor? thank you!

相关标签:
2条回答
  • 2021-02-19 23:52

    As far as I know, you can only change the following properties:

    • barTintColor: The color of the background of the bar.
    • titleTextColor: The color of the font.
    • tintColor: The color of the buttons.
    <NavigatorIOS
      barTintColor='#000'
      titleTextColor='#fff'
      tintColor='#fff'
      initialRoute={{
        title: 'SpeedNews',
        component: ViewList
      }} />
    
    0 讨论(0)
  • 2021-02-20 00:15

    maybe we can use "react-native-router"

    0 讨论(0)
提交回复
热议问题