Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

React Native change status bar text color in iOS

I solved the problem! I use this code in Index page and set the text color to white:

<StatusBar  barStyle="light-content" translucent={true} />

Try putting this code in didFinishLaunchingWithOptions in your AppDelegate file.

UIApplication.shared.statusBarStyle = .lightContent

Objective c

 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

and in your info.plist file set UIViewControllerBasedStatusBarAppearance to NO

Tags:

Ios

Statusbar

Textcolor

React Native

Related

How do I erase an Xcode 10 simulator clone through CLI? Unable to resolve module `./../../react-transform-hmr/lib/index.js` Redis sorted set leader board ranking on same score Helm chart restart pods when configmap changes Android Work Manager: "Could not instantiate Worker" No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor ag-Grid row not deleting Removing holes from polygons in R sf SceneKit shadow on a transparent SCNFloor() Changing Material Components style attributes fails Using an await in function parameter Global Variables in ASP.Net Core 2

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy