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