Hi! I'm trying to change the app theme when the user changes it inside the app. But it's not working.
The code example is below.
Is there something wrong?
useEffect(() => {
tw.setColorScheme(darkTheme ? 'dark' : 'light')
}, [darkTheme])
<View style={tw`bg-white dark:bg-gray-900`}>