https://github.com/mehcode/rn-splash-screen
A JavaScript-controlled splash-screen for React Native designed to be run directly after the native splash-screen.
https://github.com/mehcode/rn-splash-screen
react-native splash-screen
Last synced: 11 months ago
JSON representation
A JavaScript-controlled splash-screen for React Native designed to be run directly after the native splash-screen.
- Host: GitHub
- URL: https://github.com/mehcode/rn-splash-screen
- Owner: mehcode
- License: mit
- Created: 2016-06-22T07:09:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T15:42:22.000Z (over 6 years ago)
- Last Synced: 2024-10-14T09:15:30.199Z (over 1 year ago)
- Topics: react-native, splash-screen
- Language: Objective-C
- Homepage:
- Size: 4.57 MB
- Stars: 350
- Watchers: 12
- Forks: 95
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Splash Screen
[](https://www.npmjs.com/package/rn-splash-screen)
[](https://www.npmjs.com/package/rn-splash-screen)
[](https://www.npmjs.com/package/rn-splash-screen)
[](https://github.com/mehcode/rn-splash-screen/blob/master/LICENSE)
> A JavaScript-controlled splash-screen designed to be run directly after the native splash-screen.
## Install
1. `npm install --save rn-splash-screen`
2. `react-native link rn-splash-screen`
## Configure
- [Android](./docs/android.md)
- [iOS](./docs/ios.md)
## 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".
```js
import SplashScreen from "rn-splash-screen";
// Hide the active splash screen
SplashScreen.hide();
```
## Credits
- [@remobile](https://github.com/remobile)