React Native · Components
SplashScreen
A splash screen you design with your own components.
4 exports
Import
SplashScreen
componentA splash screen you design with your own components. The native splash screen (ui.config splash, preferably only a background color) closes unnoticed the moment this component first renders; then your design shows and leaves with an animation once ready. Render it at the app root, inside UIProvider and above everything else (last child).
On Android 12+ the system shows a short starting window on every launch; it cannot be disabled, but with an image-less setting (splash: { background: "#0b0b14" }) it is just a plain color and blends seamlessly with this component.
Examples
Splash
moduleSplash screen.
| Name | Type | Description |
|---|---|---|
isVisible | () => boolean | Whether the splash screen is still visible. |
hide | (options?: { duration?: number; }) => Promise<void> | Closes the splash screen; fading on both platforms (duration ms, default 200; 0 immediately). |
SplashExit
typeExit animation.
SplashScreenProps
interfaceSplashScreen props.
| Name | Type | Default | Description |
|---|---|---|---|
ready? | boolean | true | The app is ready (data loaded): the screen leaves with the exit animation. |
minDuration? | number | 0 | Minimum visible duration (ms; so the animation can finish). |
exit? | SplashExit | "fade" | |
exitDuration? | number | 300 | Exit duration (ms). |
background? | string | the theme background | Background; give it the same color as the native splash screen so the transition is invisible. |
children? | ReactNode | ((exit: Animated.Value) => ReactNode) | Your design: logo, text, your own animation. With a function, the exit progress (0 → 1) arrives as an Animated.Value. | |
onHidden? | () => void | When the screen has fully left. | |
style? | StyleProp<ViewStyle> | Style of the root view. |