withSplashScreen Config Plugin
Purpose
withSplashScreen
addresses the double splash screen issue in Expo apps (documented in Expo GitHub issue #16084), by ensuring a seamless transition between the initial native splash screen and the one managed by expo-splash-screen
.
Functionality
- Transparent Splash Screen: Replaces the default splash screen with a transparent one on Android.
- Translucent Status Bar: Sets the status bar to translucent to match the transparent splash screen.
Implementation
- Modifies
strings.xml
: Adds a setting for a translucent status bar. - Updates
styles.xml
: AdjustsTheme.App.SplashScreen
to make the window translucent.