Comments (7)
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.
react-native-screens went from 6.5.11 to 6.5.20
@react-navigation/native-stack went from 6.9.17 to 6.9.26
@react-navigation/elements went from 1.3.21 to 1.3.30
and the "weird" change is this one:
where expo router uses 6.1.6 but the 6.1.17 was added
from tamagui.
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!
from tamagui.
I'm not even sure the problem lies here or in expo router (or react navigation) since it seems like the DarkTheme
passed to the ThemeProvider
is not applied.
from tamagui.
pushed fix, can you try now?
from tamagui.
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?
from tamagui.
Imho your changes are wrong and should be reverted.
You've also added a background="$bg" to the index view which sounds wrong since the background should be actually enforced by react-navigation that is not correctly applying the theme (react-navigation or expo router, one of the two).
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
from tamagui.
Hi @giacomocerquone, thank you for your feedback and advice! I made a pr with changes, should work now if you want to test it
from tamagui.
Related Issues (20)
- Why does TamaGUI has so big slowdown in performance? HOT 2
- Input component Errors out on React Native: Cannot read property useRef of null HOT 21
- screen will flash when too fast to toggle two dialog.
- `ListItem` ignores `borderRadius`
- borderStyle is ignored when borderRadius is set
- create tamagui@latest start with a bug on mobile HOT 5
- Updated to Expo 50 - Now Can't find Module (lucide-icons) HOT 2
- Component specific theme - without light_ prefix, doesn't apply
- Installation with Expo requires config HOT 1
- Individual border radius properties are ignored on web
- `tabIndex={0}` dont seems to set the `accessible` props on IOS
- Tamagui Switch looks broken on web by default HOT 1
- Group and FlatList HOT 1
- Popover on web not closing when clicking outside or hitting scape HOT 5
- [Next.Js] Error when rendering a non client component: cannot access Image.propTypes on the server.
- Dialog.Content persists in view, when Dialog is closed. (Only when a child has `animation` prop) HOT 1
- styles props not working on expo 51 (enterStyle | exitStyle | pressStyle) HOT 2
- defaultVariant go before other props in styled if parent doesn't use them
- Cannot set `mode="wait"` on AnimatePresence HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tamagui.