I tried to add
<key>UIUserInterfaceStyle</key>
<string>Light</string>
to App_Resources/iOS/Info.plist
But the app still is with dark mode, even after rebuilding it and deleting hooks, node_modules and platforms.
I'm using tns preview --bundle
.
Not sure what can be happening with your code but it is really supposed to work. I have been using it until last update (when we finally had time to handle dark mode).
You should also be able to force light mode with
import Theme from "@nativescript/theme";
Theme.setMode(Theme.Light);
Source: https://github.com/NativeScript/theme
In addition to the plist I did (with Nativescript theme installed)
Page class="ns-light"
Worked for me on iOS 13.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With