Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix white flash on startup (#1759)

authored by

dan and committed by
GitHub
3e5a64b4 46f32659

+7 -3
-1
src/App.native.tsx
··· 34 34 setRootStore(store) 35 35 analytics.init(store) 36 36 notifications.init(store) 37 - SplashScreen.hideAsync() 38 37 Linking.getInitialURL().then((url: string | null) => { 39 38 if (url) { 40 39 handleLink(url)
+2
src/Navigation.tsx
··· 1 1 import * as React from 'react' 2 2 import {StyleSheet} from 'react-native' 3 + import * as SplashScreen from 'expo-splash-screen' 3 4 import {observer} from 'mobx-react-lite' 4 5 import { 5 6 NavigationContainer, ··· 462 463 linking={LINKING} 463 464 theme={theme} 464 465 onReady={() => { 466 + SplashScreen.hideAsync() 465 467 // Register the navigation container with the Sentry instrumentation (only works on native) 466 468 if (isNative) { 467 469 const routingInstrumentation = getRoutingInstrumentation()
+5 -2
src/view/shell/index.tsx
··· 21 21 import * as backHandler from 'lib/routes/back-handler' 22 22 import {RoutesContainer, TabsNavigator} from '../../Navigation' 23 23 import {isStateAtTabRoot} from 'lib/routes/helpers' 24 - import {SafeAreaProvider} from 'react-native-safe-area-context' 24 + import { 25 + SafeAreaProvider, 26 + initialWindowMetrics, 27 + } from 'react-native-safe-area-context' 25 28 import {useOTAUpdate} from 'lib/hooks/useOTAUpdate' 26 29 27 30 const ShellInner = observer(function ShellInnerImpl() { ··· 87 90 const pal = usePalette('default') 88 91 const theme = useTheme() 89 92 return ( 90 - <SafeAreaProvider style={pal.view}> 93 + <SafeAreaProvider initialMetrics={initialWindowMetrics} style={pal.view}> 91 94 <View testID="mobileShellView" style={[styles.outerContainer, pal.view]}> 92 95 <StatusBar style={theme.colorScheme === 'dark' ? 'light' : 'dark'} /> 93 96 <RoutesContainer>