add theme to SafeAreaView and preventAutoHide SplashScreen (#592)
This commit is contained in:
parent
249d166811
commit
6124e52836
2 changed files with 12 additions and 10 deletions
|
@ -17,6 +17,7 @@ import * as backHandler from 'lib/routes/back-handler'
|
|||
import {RoutesContainer, TabsNavigator} from '../../Navigation'
|
||||
import {isStateAtTabRoot} from 'lib/routes/helpers'
|
||||
import {isAndroid} from 'platform/detection'
|
||||
import {SafeAreaProvider} from 'react-native-safe-area-context'
|
||||
|
||||
const ShellInner = observer(() => {
|
||||
const store = useStores()
|
||||
|
@ -78,12 +79,14 @@ export const Shell: React.FC = observer(() => {
|
|||
const pal = usePalette('default')
|
||||
const theme = useTheme()
|
||||
return (
|
||||
<View testID="mobileShellView" style={[styles.outerContainer, pal.view]}>
|
||||
<StatusBar style={theme.colorScheme === 'dark' ? 'light' : 'dark'} />
|
||||
<RoutesContainer>
|
||||
<ShellInner />
|
||||
</RoutesContainer>
|
||||
</View>
|
||||
<SafeAreaProvider style={pal.view}>
|
||||
<View testID="mobileShellView" style={[styles.outerContainer, pal.view]}>
|
||||
<StatusBar style={theme.colorScheme === 'dark' ? 'light' : 'dark'} />
|
||||
<RoutesContainer>
|
||||
<ShellInner />
|
||||
</RoutesContainer>
|
||||
</View>
|
||||
</SafeAreaProvider>
|
||||
)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue