Check out example codes for "swift change status bar color". It will help you in understanding the concepts better.
Code Example 1
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setNeedsStatusBarAppearanceUpdate()
}
override var preferredStatusBarStyle: UIStatusBarStyle {
.lightContent
}
Learn ReactJs, React Native from akashmittal.com