【问题标题】:How can I set the StatusBar to a certain background color, and the Header background color to another one in React Native with CreateStackNavigator?如何在 React Native 中使用 CreateStackNavigator 将 StatusBar 设置为某种背景颜色,并将 Header 背景颜色设置为另一种?
【发布时间】:2018-10-06 20:25:08
【问题描述】:

我目前正在尝试将此 StatusBar 颜色设置为粉红色,配置为“light-content”,但我尝试将标题的其余部分设置为白色。

【问题讨论】:

    标签: reactjs react-native frontend


    【解决方案1】:

    用途:

    <StatusBar
      barStyle="light-content"
      backgroundColor="#ff00ff"
    />
    

    参考资料:

    statusbar#barstyle

    statusbar#backgroundcolor

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-23
      • 2018-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多