mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
feat: swap react-native statusbar in example
This commit is contained in:
@@ -2,7 +2,6 @@ import * as React from 'react';
|
||||
import {
|
||||
ScrollView,
|
||||
Platform,
|
||||
StatusBar,
|
||||
I18nManager,
|
||||
Dimensions,
|
||||
ScaledSize,
|
||||
@@ -226,11 +225,6 @@ export default function App() {
|
||||
|
||||
return (
|
||||
<PaperProvider theme={paperTheme}>
|
||||
<StatusBar
|
||||
translucent
|
||||
barStyle={theme.dark ? 'light-content' : 'dark-content'}
|
||||
backgroundColor="rgba(0, 0, 0, 0.24)"
|
||||
/>
|
||||
<NavigationContainer
|
||||
ref={navigationRef}
|
||||
initialState={initialState}
|
||||
@@ -308,6 +302,9 @@ export default function App() {
|
||||
<Stack.Navigator
|
||||
screenOptions={{
|
||||
headerStyleInterpolator: HeaderStyleInterpolators.forUIKit,
|
||||
statusBarStyle: theme.dark ? 'light' : 'dark',
|
||||
statusBarTranslucent: true,
|
||||
statusBarColor: 'rgba(0, 0, 0, 0.24)',
|
||||
}}
|
||||
>
|
||||
<Stack.Screen
|
||||
|
||||
Reference in New Issue
Block a user