{"id":18472557,"url":"https://github.com/wangdicoder/react-native-indicator","last_synced_at":"2025-10-07T11:58:12.888Z","repository":{"id":55533843,"uuid":"76050964","full_name":"wangdicoder/react-native-indicator","owner":"wangdicoder","description":"🌀 A friendly loading indicator component for React Native","archived":false,"fork":false,"pushed_at":"2020-12-23T12:57:26.000Z","size":2651,"stargazers_count":321,"open_issues_count":5,"forks_count":46,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-29T20:27:19.647Z","etag":null,"topics":["indicator","loading","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/wangdicoder.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":"2016-12-09T16:18:09.000Z","updated_at":"2024-04-30T07:39:28.000Z","dependencies_parsed_at":"2022-08-15T02:40:49.182Z","dependency_job_id":null,"html_url":"https://github.com/wangdicoder/react-native-indicator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdicoder%2Freact-native-indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdicoder%2Freact-native-indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdicoder%2Freact-native-indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangdicoder%2Freact-native-indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangdicoder","download_url":"https://codeload.github.com/wangdicoder/react-native-indicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217184,"owners_count":20903009,"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":["indicator","loading","react-native"],"created_at":"2024-11-06T10:20:51.635Z","updated_at":"2025-10-07T11:58:07.836Z","avatar_url":"https://github.com/wangdicoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-indicator\n\n![npm](https://img.shields.io/npm/dw/react-native-indicator.svg) ![npm](https://img.shields.io/npm/v/react-native-indicator.svg)  [![npm](https://img.shields.io/npm/l/express.svg)](https://www.npmjs.com/package/react-native-indicator)\n\nA useful indicator component for React Native\n\n\u003cimg src=\"https://raw.githubusercontent.com/wangdicoder/react-native-indicator/master/screenshot/ss1.gif\" width=\"372\" height=\"666\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wangdicoder/react-native-indicator/master/screenshot/ss2.gif\" width=\"372\" height=\"666\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wangdicoder/react-native-indicator/master/screenshot/ss3.gif\" width=\"372\" height=\"666\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wangdicoder/react-native-indicator/master/screenshot/ss4.gif\" width=\"372\" height=\"666\" /\u003e\n\n## Installation\n\nMake sure that you are in your React Native project directory and run:\n```\n$ npm install react-native-indicator --save \n$ npm install @react-native-community/art --save\n```\n\nFor react-native \u003e= 0.60 ReactNativeART should be auto-linked and no additional action is required.\n\nFor react-native \u003c 0.60 you need to link ReactNative ART:\n```\n$ react-native link @react-native-community/art\n```\n\nMore info, following the [Art module](https://github.com/react-native-community/art) instruction to configure.\n\n## Usage\n\nImport react-native-indicator as a JavaScript module:\n```\nimport { CirclesLoader, PulseLoader, TextLoader, DotsLoader, ... } from 'react-native-indicator';\n```\n\nHere is currently available types: \n\n- [PulseLoader](#PulseLoader)\n- [DotsLoader](#DotsLoader)\n- [TextLoader](#TextLoader)\n- [BubblesLoader](#BubblesLoader)\n- [CirclesLoader](#CirclesLoader)\n- [BreathingLoader](#BreathingLoader)\n- [RippleLoader](#RippleLoader)\n- [LinesLoader](#LinesLoader)\n- [MusicBarLoader](#MusicBarLoader)\n- [EatBeanLoader](#EatBeanLoader)\n- [DoubleCircleLoader](#DoubleCircleLoader)\n- [RotationCircleLoader](#RotationCircleLoader)\n- [RotationHoleLoader](#RotationHoleLoader)\n- [CirclesRotationScaleLoader](#CirclesRotationScaleLoader)\n- [NineCubesLoader](#NineCubesLoader)\n- [LineDotsLoader](#LineDotsLoader)\n- [ColorDotsLoader](#ColorDotsLoader)\n- [OpacityDotsLoader](#OpacityDotsLoader)\n\n```\nrender(){\n  return(\n    \u003cView\u003e\n      \u003cCirclesLoader /\u003e\n      \u003cTextLoader text=\"Loading\" /\u003e\n    \u003c/View\u003e\n  ); \n}\n```\n\n## Props\n\n\u003ca name=\"PulseLoader\" /\u003e\n\n##### PulseLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 30 | circle's size |\n| color | string | '#1e90ff' | indicator's color |\n| frequency | number | 1000 | scale's frequency |\n\n\n\u003ca name=\"DotsLoader\" /\u003e\n\n##### DotsLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 10 | dot's size |\n| color | string | '#1e90ff' | indicator's color |\n| betweenSpace | number | 5 | distance between two dots |\n\n\n\u003ca name=\"TextLoader\" /\u003e\n\n##### TextLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| text | string | 'Loading' | contents |\n| textStyle | style | inherited | text's style |\n\n\n\u003ca name=\"BubblesLoader\" /\u003e\n\n##### BubblesLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 40 | circle's size |\n| color | string | '#1e90ff' | indicator's color |\n| dotRadius | number | 10 | each dot's size |\n\n\n\u003ca name=\"CirclesLoader\" /\u003e\n\n##### CirclesLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 40 | circle's size |\n| color | string | '#1e90ff' | indicator's color |\n| dotRadius | number | 8 | each dot's size |\n\n\n\u003ca name=\"BreathingLoader\" /\u003e\n\n##### BreathingLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 10 | circle's size |\n| color | string | '#1e90ff' | indicator's color |\n| strokeWidth | number | 3 | outline width |\n| frequency | number | 800 | scale's frequency |\n\n\n\u003ca name=\"RippleLoader\" /\u003e\n\n##### RippleLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 10 | circle's size |\n| frequency | number | 1600 | scale's frequency |\n| color | string | '#1e90ff' | indicator's color |\n| strokeWidth | number | 3 | outline width |\n\n\n\u003ca name=\"LinesLoader\" /\u003e\n\n##### LinesLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| color | string | '#1e90ff' | indicator's color |\n| barWidth | number | 5 | each bar's width |\n| barHeight | number | 40 | each bar's height |\n| barNumber | number | 5 | the number of bar |\n| betweenSpace | number | 2 | distance between two bars |\n\n\n\u003ca name=\"MusicBarLoader\" /\u003e\n\n##### MusicBarLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| color | string | '#1e90ff' | indicator's color |\n| barWidth | number | 3 | each bar's width |\n| barHeight | number | 30 | each bar's height |\n| betweenSpace | number | 5 | distance between two bars |\n\n\n\u003ca name=\"EatBeanLoader\" /\u003e\n\n##### EatBeanLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| color | string | '#1e90ff' | indicator's color |\n| size | number | 30 | indicator's size |\n\n\n\u003ca name=\"DoubleCircleLoader\" /\u003e\n\n##### DoubleCircleLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 30 | circle's size |\n| color | string | '#1e90ff' | indicator's color |\n\n\n\u003ca name=\"RotationCircleLoader\" /\u003e\n\n##### RotationCircleLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 30 | indicator's size |\n| color | string | '#1e90ff' | indicator's color |\n| rotationSpeed | number | 800 | rotation speed |\n\n\n\u003ca name=\"RotationHoleLoader\" /\u003e\n\n##### RotationHoleLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 40 | indicator's size |\n| color | string | '#1e90ff' | indicator's color |\n| rotationSpeed | number | 800 | rotation speed |\n| strokeWidth | number | 8 | circle outline's width |\n\n\n\u003ca name=\"CirclesRotationScaleLoader\" /\u003e\n\n##### CirclesRotationScaleLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 50 | indicator's size |\n| color | string | '#1e90ff' | indicator's color |\n\n\n\u003ca name=\"NineCubesLoader\" /\u003e\n\n##### NineCubesLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 20 | each cube's size |\n| color | string | '#1e90ff' | indicator's color |\n\n\n\u003ca name=\"LineDotsLoader\" /\u003e\n\n##### LineDotsLoader\n\n**warning:** *this indicator will occupy a whole horizontal space automatically, which means you don't need to set any center props. Just keeping the direction of its parent View is vertical.*\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 10 | dot's size |\n| color | string | '#1e90ff' | indicator's color |\n| dotsNumber | number | 5 | the number of dots |\n| betweenSpace | number | 5 | distance between two dots |\n\n\n\u003ca name=\"ColorDotsLoader\" /\u003e\n\n##### ColorDotsLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 15 | each cube's size |\n| betweenSpace | number | 7 | distance between two dots |\n| color1 | string | '#ff4500'(red) | 1st color |\n| color2 | string | '#ffd700'(yellow) | 2nd color |\n| color3 | string | '#9acd32'(green) | 3rd color |\n\n##### OpacityDotsLoader\n\n| prop | type | default | description |\n| ---- | ---- | ---- | ---- |\n| size | number | 10 | dot's size |\n| color | string | '#1e90ff' | indicator's color |\n| betweenSpace | number | 5 | distance between two dots |\n| speed | number | 200 | change speed |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangdicoder%2Freact-native-indicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangdicoder%2Freact-native-indicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangdicoder%2Freact-native-indicator/lists"}