I'm developing a Nativescript (version 6.3.3) app with Angular 8.2 and @nativescript/theme 2.2.1 with scss themes. I'm trying to use only Dark (or only Light) theme regardless of system mode (Dark/Light) but nothing seems to work. I followed this guide https://github.com/NativeScript/theme and I used custom color variables setting the dark ones equal to the light ones but it doesnt' work. Can someone support me?
Unable to use only Light or Dark theme on Nativescript
959 Views Asked by Mario Esposito At
3
If you want to force Light or Dark mode only on iOS you can add the following to your Info.plist file.
For light mode:
For dark mode:
Hope this helps!