diff options
author | dan <dan.abramov@gmail.com> | 2023-10-27 04:06:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 04:06:40 +0100 |
commit | 3e5a64b4545628f72f0060b08a26e93af8eed072 (patch) | |
tree | d95b1d63c9208cd97984b0ad212d4cc4ed48a4e4 /src/Navigation.tsx | |
parent | 46f3265936d9f0289ce047b1c6d6ca58b1a48d32 (diff) | |
download | voidsky-3e5a64b4545628f72f0060b08a26e93af8eed072.tar.zst |
Fix white flash on startup (#1759)
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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() |