⚠️ This lesson is retired and might contain outdated information.

Modify status bar colors on iOS and Android with NativeScript

Nathan Walker
InstructorNathan Walker
Share this video with your friends

Social Share Links

Send Tweet
Published 7 years ago
Updated 2 years ago

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
~ 3 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
~ 3 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

Markdown supported.
Become a member to join the discussionEnroll Today