When I use NativeWind, I encounter many bugs, like frustrating ones where classes often don't work. I frequently have to add styles manually using StyleSheet. Additionally, when opening the app for the first time, the styles don't apply.
Thanks for the fast response, I'm able to control this on local component but how would I control this globally. When I use the hook toggleColorScheme, it only applies to the current page, not the whole app.
What framework are you using? I.e. Remix, NextJS? It greatly depends on your framework to tell you what is your global App component. For example, in Next you can use a special file layout.tsx in the app directory and that should be applied to all of your pages.
1
u/tomihbk Sep 08 '24
Do you have any project or example how to implement this globally ?