Skip to content

Commit 271b84c

Browse files
authored
Fix android splash screen bug (#1602)
1 parent 492f671 commit 271b84c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/splash/splash.android.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ import { setAndroidColors } from "@styles/colors/helpers";
22
import { Appearance } from "react-native";
33
import RNBootSplash from "react-native-bootsplash";
44

5+
export function preventSplashScreenAutoHide() {
6+
// RNBootSplash keeps the splash screen visible by default until hide() is called
7+
return Promise.resolve();
8+
}
9+
510
export const hideSplashScreen = async () => {
6-
await RNBootSplash.hide();
11+
await RNBootSplash.hide({ fade: true });
712
// Fixing the status bar after hiding Splash Screen
813
// TODO => try to upgrade RNBootSplash and play
914
// with the XML values

0 commit comments

Comments
 (0)