Modify status bar colors on iOS and Android with NativeScript

Share this video with your friends

Send Tweet

Learn how to programmatically change the status bar text color on iOS and Android as well as the background color. The lesson also covers how to adjust the text color to be dark on Android in cases where the status bar color may be light.

Artūrs Gailītis
Artūrs Gailītis
~ 4 years ago

Hi there, It seems that setting iOS status bar this way doesn't work anymore, iOS version 13 and 14, Nativescript v. 6.5... I'm setting the barStyle to 0 or 1, but nothing happens. No change. Always stays black. Is there any other way to get this done for iOS?

Will Johnson
Will Johnson
~ 4 years ago

Hi there, It seems that setting iOS status bar this way doesn't work anymore, iOS version 13 and 14, Nativescript v. 6.5... I'm setting the barStyle to 0 or 1, but nothing happens. No change. Always stays black. Is there any other way to get this done for iOS?

Arturs, looks like it has changed a bit in the docs https://docs.nativescript.org/ui/change-status-bar-style-ios