react native statusbar backgroundcolor ios code example
Example: 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