Good evening,
I am using the latest version v4 react native router flux in my app. Unfortunately, I could not change the background color of the scene. I tried using sceneStyle={{backgroundColor:'red'}} and style={{backgroundColor:'red'}}, neither of this works. The background is currently in grey color.
Any way to change the color of this?
Thank you
use cardStyle for Router. I will add support of sceneStyle (now only getSceneStyle as function is supported)
@aksonov It's useless in 4.0.0-beta.21.
@aksonov worked for me in 4.0.0-beta.28
I have tried cardStyle prop in both 4.0.0-beta.27 and 4.0.0-beta.28
cardStyle prop dose not work on Router component, but did work on Stack and Scene
so I wrap Scenes with a root Stack like this
<Router>
<Stack key="root" cardStyle={{backgroundColor: '#FFF'}}>
<Scene key="scene1" />
<Scene key="scene2" />
</Stack>
</Router>
@kyoyadmoon thanks...u saved my day.
Most helpful comment
I have tried
cardStyleprop in both4.0.0-beta.27and4.0.0-beta.28cardStyleprop dose not work onRoutercomponent, but did work onStackandSceneso I wrap Scenes with a root
Stacklike this