rn-splash-screen
rn-splash-screen copied to clipboard
A JavaScript-controlled splash-screen for React Native designed to be run directly after the native splash-screen.
React Native Splash Screen
A JavaScript-controlled splash-screen designed to be run directly after the native splash-screen.
Install
-
npm install --save rn-splash-screen -
react-native link rn-splash-screen
Configure
- Android
- iOS
Usage
The splash screen must be hidden from JavaScript. This can be done as late as possible so as to give your application more time to "load".
import SplashScreen from "rn-splash-screen";
// Hide the active splash screen
SplashScreen.hide();