change status bar background color react native code example
Example 1: 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
Example 2: change status bar color react native
you can use a header.