Giter VIP home page Giter VIP logo

Comments (7)

giacomocerquone avatar giacomocerquone commented on June 21, 2024 2

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:

image

where expo router uses 6.1.6 but the 6.1.17 was added

from tamagui.

giacomocerquone avatar giacomocerquone commented on June 21, 2024 1

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.

giacomocerquone avatar giacomocerquone commented on June 21, 2024

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.

SamuraiF0x avatar SamuraiF0x commented on June 21, 2024

pushed fix, can you try now?

from tamagui.

giacomocerquone avatar giacomocerquone commented on June 21, 2024

pushed fix, can you try now?

Hey there. Thank you, but no, now on both light and dark mode, it appears like this:

image

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.

giacomocerquone avatar giacomocerquone commented on June 21, 2024

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.

SamuraiF0x avatar SamuraiF0x commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.