feat: swap react-native statusbar in example

This commit is contained in:
kacperkapusciak
2021-05-26 13:56:05 +02:00
parent f62e212699
commit a8aa995a38

View File

@@ -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