【发布时间】:2017-07-26 14:17:38
【问题描述】:
努力了解如何更改导航标题栏背景颜色。 我正在使用反应导航和 Expo 来构建我的应用程序。
backgroundColor 似乎什么也没做。知道怎么做吗?
我的代码如下:
static navigationOptions = () => ({
title: 'My App',
headerTintColor: Colors.DarkBlue,
backgroundColor: 'red',
headerLeft:
<HeaderBarItem to='InfoScreen' title='App info' />,
headerRight:
<HeaderBarItem to='FeedbackScreen' title='Feedback' />
});
【问题讨论】:
标签: react-native react-navigation expo