Repository - API - Source
Version 2.0.24 Beta was promoted to stable and was published as a scoped @nativescript/theme package.
import Theme from 'nativescript-theme-core';
Theme.toggleMode(); // to toggle between the modes
// or
Theme.toggleMode(true); // to ensure dark mode
Theme.toggleMode(false); // to ensure light mode
Add small API for setMode. Usage:
import Theme from "nativescript-theme-core";
Theme.setMode(Theme.Dark); // Or Theme.Light
It would set light or dark mode even before the app is initialized.
ActionBar: action-title > action-bar-title
Before:
<Label class=“action-title”></Label>
After:
<Label class=“action-bar-title”></Label>