https://github.com/ankit417/rn-splash-screen
Splash screen generator for React Native
https://github.com/ankit417/rn-splash-screen
Last synced: 10 months ago
JSON representation
Splash screen generator for React Native
- Host: GitHub
- URL: https://github.com/ankit417/rn-splash-screen
- Owner: ankit417
- License: mit
- Created: 2023-02-26T14:00:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T11:36:32.000Z (over 3 years ago)
- Last Synced: 2025-09-07T00:59:44.228Z (10 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
This tool simplifies the process of generating a splash screen for your Android app. It scaffolds the generation process by taking a single image file and placing it in the appropriate "mip map" folder. Additionally, it generates splash screen XML drawable, as well as color and style resources for your app.
## Installation
```bash
npm i -g rn-splash-screen-gen
```
## Usage
### Generate Splash image
```javascript
rn-splash-screen-gen generate:image path_to_image.jpg
```
This command generates splash image from single image and places different size images in respective res/mipmap folder
### Generate Splash screen
```javascript
rn-splash-screen-gen generate:splash
```
This command creates res/drawable folder if doesn't exists.
creates res/drawable/background_splash.xml file.
creates/updates res/values/colors.xml.
creates/updates res/values/styles.xml.
### Finally
Add
```javascript
android: theme = "@style/SplashTheme";
android: exported = "true";
```
in AndroidManifest.xml in Activity Tag.
#### example:
```javascript
```
## Help
```bash
rn-splash-screen-gen help
```