{"id":22895940,"url":"https://github.com/codewithreelofficial/react-native-splash-screen-mask","last_synced_at":"2025-05-07T20:25:39.453Z","repository":{"id":57340389,"uuid":"156876874","full_name":"codewithreelofficial/react-native-splash-screen-mask","owner":"codewithreelofficial","description":"A splash screen for react-native, It hide when application loaded. It works on iOS, Android and Window.","archived":false,"fork":false,"pushed_at":"2018-11-13T09:18:18.000Z","size":408,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-03T21:06:34.786Z","etag":null,"topics":["android","ios","launch-screen","launchimage","launchscreen","react","react-native","reactjs","splash-screen","splashscreen"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/codewithreelofficial.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":"2018-11-09T14:57:35.000Z","updated_at":"2023-01-19T01:09:36.000Z","dependencies_parsed_at":"2022-08-29T14:41:41.337Z","dependency_job_id":null,"html_url":"https://github.com/codewithreelofficial/react-native-splash-screen-mask","commit_stats":null,"previous_names":["codewithreelofficial/react-native-splash-screen-mask"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-splash-screen-mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-splash-screen-mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-splash-screen-mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithreelofficial%2Freact-native-splash-screen-mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithreelofficial","download_url":"https://codeload.github.com/codewithreelofficial/react-native-splash-screen-mask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229629256,"owners_count":18101263,"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":["android","ios","launch-screen","launchimage","launchscreen","react","react-native","reactjs","splash-screen","splashscreen"],"created_at":"2024-12-13T23:32:53.147Z","updated_at":"2024-12-13T23:32:54.032Z","avatar_url":"https://github.com/codewithreelofficial.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-splash-screen-mask\n\n[![version](https://img.shields.io/npm/v/react-native-splash-screen-mask.svg?style=flat-square)](https://www.npmjs.com/package/react-native-splash-screen-mask) [![downloads](https://img.shields.io/npm/dm/react-native-splash-screen-mask.svg?style=flat-square)](https://www.npmjs.com/package/react-native-splash-screen-mask) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](http://opensource.org/licenses/MIT).\n\nA splash screen for react-native, It hide when application loaded. It works on iOS, Android and Window.\n\n## Content\n\n- [Examples](#examples)\n- [Installation](#installation)\n- [Props](#props)\n- [Wrap Up](#wrap-up)\n- [Contribution](#contribution)\n\n## Examples\n\n[Examples](./examples \"react-native-splash-screen-mask\")\n\n![react-native-splash-screen-mask](./react-native-splash-screen-mask.gif \"react-native-splash-screen-mask\")\n\n## Installation\n\n`$ npm install react-native-splash-screen-mask --save`\n\n## Usage\n\nUse like so:\n\n```javascript\nimport React, { Component } from 'react';\nimport { StyleSheet } from 'react-native';\nimport SplashScreenMask from 'react-native-splash-screen-mask';\nimport { Actions } from 'react-native-router-flux';\n\nimport IMAGE from '../assets/react.png';\n\nexport default class SplashScreen extends Component {\n  render() {\n    return (\n      \u003cSplashScreenMask\n        imageSource={IMAGE}\n        navigationAction={() =\u003e Actions.homeScene()}\n        backgroundStyle={styles.backgroundStyle}\n        duration={3000}\n      /\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  backgroundStyle: {\n    backgroundColor: '#fff',\n  },\n});\n```\n\n## Props\n\n| props | Type | Optional | Default | Description |\n|--------|--------|--------|--------|--------|\n| imageSource | any | no |  | The image (png, jpg, jpeg, gif) splash screen. |\n| navigationAction | any | no |  | Redirect callback function (can be used `react-native-router-flux` or anything else).  |\n| backgroundStyle | any | yes | `{ backgroundColor: '#fff' }` | The style of splash screen background. |\n| duration | number | yes | 3000 (3 seconds) | Duration for loading the splash screen. |\n\n## Wrap Up\n\nIf you think any of the `react-native-splash-screen-mask` can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.\n\n## Contribution\n\nWe'd love to have your helping hand on contributions to `react-native-splash-screen-mask` by forking and sending a pull request.\n\nYour contributions are heartily ♡ welcome, recognized and appreciated.\n\nHow to contribute:\n\n- Open pull request with improvements\n- Discuss ideas in issues\n- Spread the word\n- Reach out with any feedback\n\n## License\n\nThe MIT License [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithreelofficial%2Freact-native-splash-screen-mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithreelofficial%2Freact-native-splash-screen-mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithreelofficial%2Freact-native-splash-screen-mask/lists"}