mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 17:43:08 +08:00
fix: set statusbar to translucent on Android
This commit is contained in:
@@ -221,9 +221,11 @@ export default function App() {
|
||||
|
||||
return (
|
||||
<PaperProvider theme={paperTheme}>
|
||||
{Platform.OS === 'ios' && (
|
||||
<StatusBar barStyle={theme.dark ? 'light-content' : 'dark-content'} />
|
||||
)}
|
||||
<StatusBar
|
||||
translucent
|
||||
barStyle={theme.dark ? 'light-content' : 'dark-content'}
|
||||
backgroundColor="rgba(0, 0, 0, 0.24)"
|
||||
/>
|
||||
<NavigationContainer
|
||||
ref={navigationRef}
|
||||
initialState={initialState}
|
||||
|
||||
Reference in New Issue
Block a user