Git Product home page Git Product logo

Comments (4)

mrzachnugent avatar mrzachnugent commented on May 19, 2024

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 userInterfaceStyle: "light", then you switched it to "dark", it worked well, and then you switched it back to "light" and it worked well?

Not sure about the expo caching issue but async-storage is used to persist the theme which might be causing the seemingly caching issue.

from react-native-reusables.

trevorpfiz avatar trevorpfiz commented on May 19, 2024

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 userInterfaceStyle and copied the components in.

from react-native-reusables.

mrzachnugent avatar mrzachnugent commented on May 19, 2024

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.

from react-native-reusables.

trevorpfiz avatar trevorpfiz commented on May 19, 2024

the issue is definitely something with expo or nativewind. I can't reproduce it.

from react-native-reusables.

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.