From 3e5a64b4545628f72f0060b08a26e93af8eed072 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 27 Oct 2023 04:06:40 +0100 Subject: Fix white flash on startup (#1759) --- src/Navigation.tsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Navigation.tsx') diff --git a/src/Navigation.tsx b/src/Navigation.tsx index e1d5e76aa..86c097ced 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -1,5 +1,6 @@ import * as React from 'react' import {StyleSheet} from 'react-native' +import * as SplashScreen from 'expo-splash-screen' import {observer} from 'mobx-react-lite' import { NavigationContainer, @@ -462,6 +463,7 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { linking={LINKING} theme={theme} onReady={() => { + SplashScreen.hideAsync() // Register the navigation container with the Sentry instrumentation (only works on native) if (isNative) { const routingInstrumentation = getRoutingInstrumentation() -- cgit 1.4.1