-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Expo router starter has wrong colorScheme on device set on light mode #2691
Comments
I'm not even sure the problem lies here or in expo router (or react navigation) since it seems like the |
pushed fix, can you try now? |
Hey there. Thank you, but no, now on both light and dark mode, it appears like this: Also, here you should not set defaultTheme: https://github.com/tamagui/tamagui/blob/master/starters/expo-router/app/_layout.tsx#L47, but removing it still doesn't solve the problem and most importantly, you shouldn't push stuff like that, it makes difficult for me, or other contributors, to comment or to give feedbacks in general. What do you say of opening a PR next time? |
Imho your changes are wrong and should be reverted. I've started an expo project that has slightly different libs version and then added tamagui on top of that and it's working really well for some reason. I could investigate on that but running out of time sadly |
Just noticed that deleting the lockfile and the node_modules folder, and then reissuing yarn install, make the ThemeProvider work... what a nightmare, I believe yarn 4 is giving inconsistent results for some reason totally unknown to me. I also tried to compare the “pre” and “post” lock files, but the diff is huge. and the "weird" change is this one: where expo router uses 6.1.6 but the 6.1.17 was added |
Hi @giacomocerquone, thank you for your feedback and advice! I made a pr with changes, should work now if you want to test it |
yes it is, thank you! |
Current Behavior
Hey there. Just spawned up a new project with
npm create
and I've chosen the expo router starter.The simulator is in light mode, and for some reason this is what I see (n.b. the problem is not there when setting the simulator in dark mode):
Expected Behavior
I should be able to read the text and have the correct color scheme
Tamagui Version
Platform (Web, iOS, Android)
Reproduction
System Info
The text was updated successfully, but these errors were encountered: