{"id":4284,"url":"https://github.com/kdastan/react-native-modal-loader","last_synced_at":"2025-08-04T01:31:44.592Z","repository":{"id":57338404,"uuid":"126635571","full_name":"kdastan/react-native-modal-loader","owner":"kdastan","description":"Customizable animated modal progress hud for react apps.","archived":false,"fork":false,"pushed_at":"2020-07-23T16:57:38.000Z","size":98,"stargazers_count":39,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-01T09:55:37.041Z","etag":null,"topics":["hud","javascript","loader","modal","progress","react-native"],"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/kdastan.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-03-24T19:59:27.000Z","updated_at":"2024-05-31T08:01:02.000Z","dependencies_parsed_at":"2022-09-07T11:50:48.351Z","dependency_job_id":null,"html_url":"https://github.com/kdastan/react-native-modal-loader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdastan%2Freact-native-modal-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdastan%2Freact-native-modal-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdastan%2Freact-native-modal-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdastan%2Freact-native-modal-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdastan","download_url":"https://codeload.github.com/kdastan/react-native-modal-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228582487,"owners_count":17940587,"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":["hud","javascript","loader","modal","progress","react-native"],"created_at":"2024-01-05T20:17:06.854Z","updated_at":"2024-12-07T08:30:25.853Z","avatar_url":"https://github.com/kdastan.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"# react-native-modal-loader\n\n[![Platform](https://img.shields.io/badge/platform-react--native-lightgrey.svg)](http://facebook.github.io/react-native/)\n[![npm version](http://img.shields.io/npm/v/react-native-modal-loader.svg)](https://www.npmjs.com/package/react-native-modal-loader)\n[![npm downloads](https://img.shields.io/npm/dm/react-native-modal-loader.svg?update=7)](http://badge.fury.io/js/react-native-modal-loader)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.github.com/testshallpass/react-native-dropdownalert/master/LICENSE)\n\nA progress hud for react apps\n\n## Installation\n\nInstall the module from npm with `npm install react-native-modal-loader --save`.\n\n## Demo\n\n\u003cimg src=\"https://github.com/kdastan/react-native-modal-loader/blob/master/demo/demonstration.gif\" width=\"30%\" /\u003e\n\n## Usage\n\nImport module using `import Loader from 'react-native-modal-loader';`, then place component at the top of your view container.\n\n### Properties\n\n| Prop    | Default | isRequired |        Type        | Description                              |\n| :------ | :-----: | :--------: | :----------------: | :--------------------------------------- |\n| loading |  false  |    true    |        bool        | Whether to show the loader or hide it    |\n| color   |  grey   |   false    |       color        | Color of the spinner                     |\n| size    |  small  |   false    | 'small' or 'large' | Size of the spinner                      |\n| opacity |   0.4   |   false    |       number       | Background opacity value between 0 and 1 |\n| title   |   \"\"    |   false    |       string       | Description for loader                   |\n\n## Example\n\n```js\nimport React, { Component } from \"react\";\nimport { StyleSheet, Button, Text, View } from \"react-native\";\nimport Loader from \"react-native-modal-loader\";\n\nexport default class App extends Component {\n  state = {\n    isLoading: false\n  };\n\n  showLoader = () =\u003e {\n    this.setState({ isLoading: true });\n  };\n\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cLoader loading={this.state.isLoading} color=\"#ff66be\" /\u003e\n        \u003cButton title=\"Press me!\" onPress={this.showLoader} /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    justifyContent: \"center\",\n    alignItems: \"center\",\n    backgroundColor: \"#F5FCFF\"\n  }\n});\n```\n\n## Future goals\n\n- [ ] New animation style\n\n## License\n\n[MIT License](http://opensource.org/licenses/mit-license.html). © Kumar Dastan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdastan%2Freact-native-modal-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdastan%2Freact-native-modal-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdastan%2Freact-native-modal-loader/lists"}