2.2.0 (2024-01-26)
Features
- update theme at runtime (35197ca)
You can now update the theme at runtime. This is useful if you want to show the user interface with default colors and later alter theme based on user preferences.
UnistylesRuntime.updateTheme('light', theme => ({
...theme,
// override theme here 😈
// if currently selected theme has been updated, unistyles will re-render
}))
Docs: https://reactnativeunistyles.vercel.app/reference/theming/#update-theme-during-runtime