是否可以在 react-native-router-flux 中更改运行时的 navigationBarStyle?
Is it possible to change the navigationBarStyle on runtime in react-native-router-flux?
我想在打开场景时更改导航栏的背景颜色。
我试图通过这个实现它但是它不起作用。
Actions.scene({navigationBarStyle:{backgroundColor:'red'}});
这会导致语法错误
Actions.scene({navigationBarStyle:{{backgroundColor:'red'}}});
有什么想法吗?
尝试将道具 navigationBarStyle
更改为 headerStyle
。
Actions.scene({headerStyle:{backgroundColor:'#FF0000'}});
我想在打开场景时更改导航栏的背景颜色。
我试图通过这个实现它但是它不起作用。
Actions.scene({navigationBarStyle:{backgroundColor:'red'}});
这会导致语法错误
Actions.scene({navigationBarStyle:{{backgroundColor:'red'}}});
有什么想法吗?
尝试将道具 navigationBarStyle
更改为 headerStyle
。
Actions.scene({headerStyle:{backgroundColor:'#FF0000'}});