NavigatorIOS設置barTintColor後,顏色和實際顏色有差別
1.使用NavigatorIOS控件設置導航條顏色
<NavigatorIOS
style = {BmacStyles.container}
initialRoute={{
component: MainPage,
title: '',
leftButtonTitle:'左邊按鈕',
tintColor:'#ffffff',//白色 導航欄上按鈕的顏色。
barTintColor:'rgb(30, 129, 210)',//導航欄,藍色
}}
>
</NavigatorIOS>
效果如下
2.增加一個屬性即可解決
<NavigatorIOS
style = {BmacStyles.container}
initialRoute={{
component: MainPage,
title: '',
leftButtonTitle:'左邊按鈕',
tintColor:'#ffffff',//白色 導航欄上按鈕的顏色。
barTintColor:'rgb(30, 129, 210)',//導航欄,藍色
translucent: false,
}}
>
</NavigatorIOS>