react native ios status bar style code example

Example 1: react native status bar

<StatusBar animated={true} backgroundColor="#fff"  barStyle="dark-content" />

Example 2: change status bar color ios react native

import React from 'react'
import { View, Text, StatusBar, LogBox, Platform } from 'react-native'
import Routes from './Src/Routes'

const App = () => {
  if (Platform.OS == 'ios') {
  	  StatusBar.setBarStyle('light-content', true);	//<<--- add this
  }
  return (
    <>
      <StatusBar backgroundColor={"#000"} />
      <Routes />
    </>
  )
}

export default App