Replies: 1 comment
-
I'm no longer focusing on 2.x. Unistyles 3.0 is right around the corner. There will be no hooks, so I can't scope it to anything. This request is on my to-do list, but there's been no progress or ETA so far. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per https://reactnativeunistyles.vercel.app/reference/theming/
If I understand correctly, this changes the theme at global level and for whole app, but in some scenarios I'd like to change the theme for certain components and all the children, which won't be possible with the approach above.
The use case
Let's say I have Dialog that should always be light. That is doable by simply setting the backgroundColor, but as the default text color would be taken from the global palette, I would end up in all underlying Text components having whitish color because the global theme is dark.
Inspecting the
useStyles
/useUnistyles
code it shouldn't be that hard to add support for thisBeta Was this translation helpful? Give feedback.
All reactions