I want to change the background color of the navigation bar while opening the the scene.
I tried to achieve it by this but it doesn't work.
Actions.scene({navigationBarStyle:{backgroundColor:'red'}});
And this gives syntax error
Actions.scene({navigationBarStyle:{{backgroundColor:'red'}}});
Any ideas?
Try changing the prop navigationBarStyle
to headerStyle
.
Actions.scene({headerStyle:{backgroundColor:'#FF0000'}});