Saeb Panahifar
Saeb Panahifar

Reputation: 489

How can I change status text color (iOS) in NativeScript?

My Application has a white background, so I can't see anything there like time and battery icon.

I would need the dark status bar text color from iOS.

enter image description here

Upvotes: 0

Views: 655

Answers (2)

Saeb Panahifar
Saeb Panahifar

Reputation: 489

Solution :

Info plist fields If you’re using info.plist to adjust the default behaviour of your status bar, you’ll want to add rows for:

Status bar style(UIStatusBarStyle). List item

Choose from either:

  1. Default (UIStatusBarStyleDefault)
  2. Light (UIStatusBarStyleLightContent)

Upvotes: 1

Manoj
Manoj

Reputation: 21908

You will have to update the info.plist at App_Resources/iOS. Detailed instructions can be found at {N} docs.

Use UIStatusBarStyleDefault for black text,

<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

Upvotes: 1

Related Questions