-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
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
Unable to change default background color of gray #2033
Comments
You can use this:
On your scenes config. |
I will add support of getSceneStyle for upcoming release. Try cardStyle as @luco suggested |
How are you setting your scenes configs? |
you can check it out in the issue I opened before: #2039 |
I also noticed that |
Try this way:
It should work. |
I know this issue was closed a few weeks ago, but I am having the same issue since upgrading to version 4 and haven't been able to find a solution. Can someone explain to me how sceneConfig works? I can't seem to make that solution work for me. I am currently <Router sceneStyle={{ backgroundColor: '#000000' }} > which worked fine in version 3, but now my app has the default gray color and I can't seem to change it. |
do what @luco did exactly. An additional thing i had to do is also add the {...sceneconfig} line to all other routes beneath it too. |
@luco worked for me too, can you explain as to how this works though? As in where does the cardStyle come from |
@d7laungani , I've added this style to my router component and it has solved for me. Example:
|
use : headerTintColor="black" |
I added a margin to the tabview page from the example and the color behind is gray I inspected the element and it is part of the Animated component of the card in the stack navigator. I have been unable to modify the background to white. I have tried changing the style using the getSceneStyle property of the router but it still does not work. The code I have implemented is shown below.
The text was updated successfully, but these errors were encountered: