Comments (4)
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.
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.
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.
the issue is definitely something with expo or nativewind. I can't reproduce it.
from react-native-reusables.
Related Issues (20)
- [ BUG ] copy button doesn't work on the primitives/types docs page HOT 1
- [ BUG ] 'onPress' prop does not fire when dropdown items are pressed HOT 2
- [ BUG ] TypeScript not working HOT 2
- Using In a non typescript project HOT 2
- [ BUG ] Warning: You are setting the style `{ userSelect: ... }` as a prop. You should nest it in a style object. E.g. `{ style: { userSelect: ... } }` HOT 1
- [ BUG ] Cli is broken HOT 5
- [ BUG ] Cli overwrite HOT 1
- [ BUG ] HOT 1
- [ NativeWind Bug ] The web platform does not work on windows HOT 8
- Add the components preview page HOT 1
- [ FEATURE ] Bottom sheet HOT 1
- Select dropdown does not work inside page which is set to `presentation: "modal"` HOT 4
- Bug: not being able to run the demo project HOT 4
- [ BUG ] Alert crashing on web but working on native HOT 2
- [ BUG ] Nested text with different font size getting cut off HOT 1
- [ BUG ] Error: Element type is invalid: expected a string HOT 3
- [FEATURE] Shareable UI between Expo and Web
- [ BUG ] Tooltip issues with react-native-reanimated 3.10.0
- [ BUG ] dark modifier on native HOT 2
- [ BUG ] Error during rendering Select component. HOT 3
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 react-native-reusables.