Use onThemeChange to save the choice (e.g. with AsyncStorage or expo-secure-store) and pass it back as defaultTheme on the next launch. forcedTheme fixes a screen to light or dark.
Styling for dark mode
shadcn's variables switch automatically. For your own classes, use the dark: variant: className="bg-white dark:bg-zinc-900".
Built with @astrawind/ui and @astrawind/css. Components ported from shadcn/ui (MIT).