{"id":29054290,"url":"https://github.com/lumi-software/react-native-splash-screen","last_synced_at":"2026-04-27T17:34:14.546Z","repository":{"id":57130643,"uuid":"271691866","full_name":"lumi-software/react-native-splash-screen","owner":"lumi-software","description":"Splash screen for ios and android","archived":false,"fork":false,"pushed_at":"2020-06-12T11:16:36.000Z","size":5325,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-29T00:10:06.336Z","etag":null,"topics":["react-native","splash-screen"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lumi-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-12T02:37:41.000Z","updated_at":"2021-07-20T21:01:20.000Z","dependencies_parsed_at":"2022-09-01T00:12:20.493Z","dependency_job_id":null,"html_url":"https://github.com/lumi-software/react-native-splash-screen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lumi-software/react-native-splash-screen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-splash-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-splash-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-splash-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-splash-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lumi-software","download_url":"https://codeload.github.com/lumi-software/react-native-splash-screen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumi-software%2Freact-native-splash-screen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262175242,"owners_count":23270423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-native","splash-screen"],"created_at":"2025-06-27T02:07:41.220Z","updated_at":"2026-04-27T17:34:09.523Z","avatar_url":"https://github.com/lumi-software.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nghinv/react-native-splash-screen\n\n[![npm](https://img.shields.io/npm/v/@nghinv/react-native-splash-screen)](https://www.npmjs.com/package/@nghinv/react-native-splash-screen)\n[![npm](https://img.shields.io/npm/l/react-native-smart-splash-screen.svg)](https://github.com/lumi-software/react-native-splash-screen/blob/master/LICENSE)\n\nA smart splash screen for React Native apps, written in JS, oc and java for cross-platform support.\nIt works on iOS and Android.\n\n## Preview\n\n![react-native-splash-screen-ios](./assets/ios.gif) \n![react-native-splash-screen-android](./assets/android.gif)\n\n## Installation\n\n* Use yarn\n\n```\nyarn add @nghinv/react-native-splash-screen\n```\n\n* Use npm\n\n```\nnpm install @nghinv/react-native-splash-screen --save\n```\n\n## Installation (iOS)\n\n- With RN \u003e= 0.60 run `cd ios \u0026\u0026 pod install`\n\n- With RN \u003c 0.60 run `react-native link @nghinv/react-native-splash-screen`\n\n* delete your project's LaunchScreen.xib\n\n* Drag `SplashScreenResource` folder to your project *if you want change image, replace splash.png or add a image with your custom name*\n\n* In AppDelegate.m\n\n```c\n...\n\n#import \"RCTSplashScreen.h\" //import interface\n\n...\n\nRCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation moduleName:@\"ReactNativeComponents\" initialProperties:nil launchOptions:launchOptions];\n\n[RCTSplashScreen open:rootView withImageNamed:@\"splash\"]; // activate splashscreen, imagename from LaunchScreen.xib\n\nrootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];\n\nself.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];\nUIViewController *rootViewController = [UIViewController new];\nrootViewController.view = rootView;\nself.window.rootViewController = rootViewController;\n[self.window makeKeyAndVisible];\nreturn YES;\n\n```\n\n## Installation (Android)\n\n- Auto link with RN \u003e= 0.60\n\n- Run `react-native link @nghinv/react-native-splash-screen` with RN \u003c0.60\n\n* Add your own `drawable/splash.png` to `android/app/src/main/res/`, it is recommended to add `drawable-?dpi` folders that you need.\n\n  * drawable-hdpi\n  * drawable-mdpi\n  * drawable-xhdpi\n  * drawable-xxhdpi\n  * drawable-xxxhdpi\n\n* in MainActivity.java\n\n```java\n...\nimport android.os.Bundle;\nimport com.reactnativecomponent.splashscreen.RCTSplashScreen; //import RCTSplashScreen\n...\n@Override\nprotected void onCreate(Bundle savedInstanceState) {\n    RCTSplashScreen.openSplashScreen(this); //open splashscreen\n    super.onCreate(savedInstanceState);\n}\n```\n\n* In `android/app/**/styles.xml`\n\n```xml\n...\n\u003c!-- Base application theme. --\u003e\n\u003cstyle name=\"AppTheme\" parent=\"Theme.AppCompat.Light.NoActionBar\"\u003e\n    \u003c!-- Customize your theme here. --\u003e\n    \u003citem name=\"android:windowIsTranslucent\"\u003etrue\u003c/item\u003e\n\u003c/style\u003e\n...\n```\n\n## Usage\n\n```js\n...\nimport SplashScreen from '@nghinv/react-native-splash-screen';\n...\ncomponentDidMount () {\n  SplashScreen.close({\n    animationType: SplashScreen.animationType.scale,\n    duration: 850,\n    delay: 500,\n  })\n}\n...\n```\n\n## Method\n\n* close(animationType, duration, delay) close splash screen with custom animation\n\n  * animationType: determine the type of animation. enum(animationType.none, animationType.fade, animationType.scale)\n  * duration: determine the duration of animation\n  * delay: determine the delay of animation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumi-software%2Freact-native-splash-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumi-software%2Freact-native-splash-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumi-software%2Freact-native-splash-screen/lists"}