{"id":19920606,"url":"https://github.com/liyuechun/react-native-simplest-hud","last_synced_at":"2025-05-03T06:31:11.391Z","repository":{"id":57340108,"uuid":"88493332","full_name":"liyuechun/react-native-simplest-hud","owner":"liyuechun","description":"The simplest network load indicator of react-native","archived":false,"fork":false,"pushed_at":"2017-04-18T09:04:48.000Z","size":23472,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T07:20:00.662Z","etag":null,"topics":["hud","loading","mbprogresshud","react","react-native","react-native-hud","reactjs","rnprogresshud","rnpropgresshud"],"latest_commit_sha":null,"homepage":"http://www.kongyixueyuan.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liyuechun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-17T09:31:05.000Z","updated_at":"2024-02-06T19:56:18.000Z","dependencies_parsed_at":"2022-08-26T04:30:20.394Z","dependency_job_id":null,"html_url":"https://github.com/liyuechun/react-native-simplest-hud","commit_stats":null,"previous_names":["liyuechun/rnprogresshud"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyuechun%2Freact-native-simplest-hud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyuechun%2Freact-native-simplest-hud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyuechun%2Freact-native-simplest-hud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liyuechun%2Freact-native-simplest-hud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liyuechun","download_url":"https://codeload.github.com/liyuechun/react-native-simplest-hud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252154737,"owners_count":21702983,"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","loading","mbprogresshud","react","react-native","react-native-hud","reactjs","rnprogresshud","rnpropgresshud"],"created_at":"2024-11-12T22:05:10.397Z","updated_at":"2025-05-03T06:31:06.382Z","avatar_url":"https://github.com/liyuechun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The simplest network load indicator of react-native\n\n\nIf you want to learn React-Native cross platform project，Check out [ComicBook](https://github.com/liyuechun/ComicBook).\n\n\n## Design sketch\n\n![progress-hud-screen](http://ooljpjhzm.bkt.clouddn.com/001.png)\n![progress-hud-screen](http://ooljpjhzm.bkt.clouddn.com/002.png)\n![progress-hud-screen](http://ooljpjhzm.bkt.clouddn.com/003.png)\n![progress-hud-screen](http://ooljpjhzm.bkt.clouddn.com/004.png)\n![progress-hud-screen](http://ooljpjhzm.bkt.clouddn.com/005.png)\n\n## Install\n\n```shell\nnpm install --save react-native-simplest-hud\n```\n\n## Usage\n\n```js\nimport { RNProgressHUD,mixin } from 'react-native-simplest-hud';\n\nimport jsonData from './data.json';\n\nclass ExamplePage extends  mixin(RNProgressHUD.Mixin){\n\u003c!--mixin(RNProgressHUD.Mixin) replace Component--\u003e\n    ...\n    render(){\n        return(\n            \u003cView style={{flex: 1,backgroundColor: 'white'}}\u003e\n                ...\n                \u003cRNProgressHUD\n                    isVisible={this.state.is_hud_visible} //Fixed writing\n                    color='rgb(69,149,252)' //hud color\n                    label=\"Loading...\"  //\"\" or \"Prompt string\"\n                    isActivityIndicator={true} //true or false\n                /\u003e\n                ...\n            \u003c/View\u003e\n        );\n    }\n}\n```\n\n### Showing the HUD\nYou can display the HUD by calling:\n\n```js\n  this.showHUD();\n```\n\n### Dismissing the HUD\nIt can be hide by calling:\n\n```js\n  this.hideHUD();\n```\n\n## Props\nThe following props can be used to modify the HUD's style and/or behaviour:\n\n| Prop | Type | Opt/Required | Default | Note |\n|---|---|---|---|---|\n|__`isVisible`__|_Boolean_|Required|`N/A`|Displays the HUD when set to true.\n|__`isActivityIndicator`__|_Boolean_|Optional|`false`|When set to true, the HUD is show by the ActivityIndicator style,or showing by the Rotating ring style.\n|__`label`__|_String_|Optional|`Loading...`|Sets Prompt string of the HUD.\n|__`color`__|_String_|Optional|`rgb(69,149,252)`|Sets the color of the HUD spinner.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliyuechun%2Freact-native-simplest-hud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliyuechun%2Freact-native-simplest-hud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliyuechun%2Freact-native-simplest-hud/lists"}