-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
colors were not right for userInterfaceStyle: "light" #8
Comments
Not sure to understand the issue. What do you mean by "the colors for buttons for example were too light"? So the colors were too light when you first had Not sure about the expo caching issue but async-storage is used to persist the theme which might be causing the seemingly caching issue. |
Hey, sorry for being so vague. Instead of black for a default variant the button was gray, and for destructive it was a pale red instead of what it should be. When I changed the global.css values the colors would change, but not be accurate to what they should be. I didn't set up the theme provider, just set |
The theme provider is for the navigation so it shouldn't be related. It could be a nativewind issue (it is still in beta), a difference in versions of dependencies, an issue with your tailwind config, or something else. Please add a minimal-repoduction repo with the same issue or at the minimum your tailwind config, your css variables, the version of nativewind that you are using, and the code for your button that have the wrong theme. |
the issue is definitely something with expo or nativewind. I can't reproduce it. |
This seems like an expo cache issue.
I had
userInterfaceStyle: "light"
and when I was first using rnr-ui the colors for buttons for example were too light. I changed touserInterfaceStyle: "dark"
and everything looked good. Changed back touserInterfaceStyle: "light"
and all the colors were fine?I had been running
expo start -c
with no impact. Not sure.The text was updated successfully, but these errors were encountered: