We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tell us which versions you are using:
I want to change the backgroundColor of the whole RouterObject Trying the code from the example does not do the trick neither.
backgroundColor
RouterObject
The sceneStyle gets not applied
sceneStyle
export default class TestComp extends Component { render() { return ( <Router sceneStyle = {styles.container}> <Scene key = "root"> <Scene key = "index" component = {NumberOne} title = "Headline" titleStyle = {styles.header} initial /> <Scene key = "Test2" component = {NumberTwo} /> </Router> ) } }; const styles = StyleSheet.create({ container: { backgroundColor: "red" }, });
const getSceneStyle = () => ({ backgroundColor: "white", shadowOpacity: 1, shadowRadius: 3, }); export default class TestComp extends Component { render() { return ( <Router getSceneStyle={getSceneStyle}> <Scene key = "root"> <Scene key = "index" component = {NumberOne} title = "Headline" titleStyle = {styles.header} initial /> <Scene key = "Test2" component = {NumberTwo} /> </Router> ) } };
The text was updated successfully, but these errors were encountered:
Please always try to latest version before posting issues (now it is beta.18)
Sorry, something went wrong.
That solved it. Thanks for the awesome support!
No branches or pull requests
Version
Tell us which versions you are using:
Expected behaviour
I want to change the
backgroundColor
of the wholeRouterObject
Trying the code from the example does not do the trick neither.
Actual behaviour
The
sceneStyle
gets not appliedSteps to reproduce
My try
Code from example
The text was updated successfully, but these errors were encountered: