You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note**: The `theme-loader!` prefix is used to apply a custom loader that prevents the styles from being auto-applied, and instead applied on-demand by the theme switcher. It requires `@nativescript/webpack@5+` to work properly.
28
+
29
+
---
30
+
31
+
If you need to switch multiple themes simultaniously, you can initialize as many switchers as you need. Each switcher will load css and persist (unless disabled) the last selected theme.
32
+
33
+
Can be useful if your app can switch different parts of the theme individually. For example
`themes` is an object with the theme name as the key, and a loader function that returns the theme css (css string, ast, optionally async).
67
+
68
+
`default` will be applied if set as a theme.
69
+
70
+
If `persistent` is enabled (default), the last selected theme will be saved to ApplicationSettings and automatically restored when `initThemes` is called.
0 commit comments