{"id":29931526,"url":"https://github.com/taimoorsultani/react-native-spinkit-button","last_synced_at":"2026-05-05T08:36:00.146Z","repository":{"id":39748857,"uuid":"372854703","full_name":"taimoorsultani/react-native-spinkit-button","owner":"taimoorsultani","description":"React-Native Button, with the collection of animated loading indicators (react-native-spinkit)","archived":false,"fork":false,"pushed_at":"2022-06-22T20:17:06.000Z","size":653,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T17:43:36.869Z","etag":null,"topics":["button","indicator","loading","loading-button","react","react-native","react-native-button","react-native-buttons","spinner","spinners"],"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/taimoorsultani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-06-01T14:15:22.000Z","updated_at":"2022-05-26T13:46:32.000Z","dependencies_parsed_at":"2022-09-03T07:00:20.491Z","dependency_job_id":null,"html_url":"https://github.com/taimoorsultani/react-native-spinkit-button","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/taimoorsultani/react-native-spinkit-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taimoorsultani%2Freact-native-spinkit-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taimoorsultani%2Freact-native-spinkit-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taimoorsultani%2Freact-native-spinkit-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taimoorsultani%2Freact-native-spinkit-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taimoorsultani","download_url":"https://codeload.github.com/taimoorsultani/react-native-spinkit-button/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taimoorsultani%2Freact-native-spinkit-button/sbom","scorecard":{"id":865953,"data":{"date":"2025-08-11","repo":{"name":"github.com/taimoorsultani/react-native-spinkit-button","commit":"467c8e2ae153d209d772312f99d4e982701e5023"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T02:42:05.778Z","repository_id":39748857,"created_at":"2025-08-24T02:42:05.779Z","updated_at":"2025-08-24T02:42:05.779Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32642273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["button","indicator","loading","loading-button","react","react-native","react-native-button","react-native-buttons","spinner","spinners"],"created_at":"2025-08-02T17:12:33.602Z","updated_at":"2026-05-05T08:36:00.123Z","avatar_url":"https://github.com/taimoorsultani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-spinkit-button [![npm version](https://badge.fury.io/js/react-native-spinkit-button.svg)](https://badge.fury.io/js/react-native-spinkit-button)\n\n`React-Native` `Button`, with collection of animated loading indicators `(react-native-spinkit)`.\n\n# Preview\n\n![Example of react-native-spinkit-button](https://github.com/taimoorsultani/react-native-spinkit-button/blob/main/example.gif)\n\n## Getting Started\n\n### Using npm\n\n```bash\nnpm i react-native-spinkit react-native-spinkit-button react-native-vector-icons\n```\n\n### Using yarn\n\n```bash\nyarn add react-native-spinkit react-native-spinkit-button react-native-vector-icons\n```\n\n[react-native-spinkit](https://github.com/maxs15/react-native-spinkit)\n[react-native-vector-icons](https://github.com/oblador/react-native-vector-icons)\n\n## Usage\n\n### Text Only\n\n```javascript\nimport React, {useState} from 'react';\nimport SpinkitButton from 'react-native-spinkit-button';\n\nconst App = () =\u003e {\n  const [onlyTextLoading, setOnlyTextLoading] = useState(false);\n\n  const onTextClick = () =\u003e {\n    setOnlyTextLoading(true);\n    setTimeout(() =\u003e {\n      setOnlyTextLoading(false);\n    }, 3000);\n  };\n\n  return (\n    \u003cSpinkitButton\n      width={270}\n      height={40}\n      borderRadius={11}\n      onPress={onTextClick}\n      buttonStyle={styles.button}\n      label={'ONLY TEXT'}\n      labelStyle={styles.textButtonStyle}\n      loading={onlyTextLoading}\n      size={15}\n      type={'CircleFlip'}\n      color={'#FFFFFF'}\n      animationDuration={300}\n    /\u003e\n  );\n};\n```\n\n### Icon \u0026 Text\n\n```javascript\nimport React, {useState} from 'react';\nimport SpinkitButton from 'react-native-spinkit-button';\nimport Icon from 'react-native-vector-icons/dist/FontAwesome';\n\nconst App = () =\u003e {\n  const [iconAndTextLoading, setIconAndTextLoading] = useState(false);\n\n  const iconWithTextClick = () =\u003e {\n    setIconAndTextLoading(true);\n    setTimeout(() =\u003e {\n      setIconAndTextLoading(false);\n    }, 3000);\n  };\n\n  return (\n    \u003cSpinkitButton\n      width={270}\n      height={40}\n      borderRadius={11}\n      onPress={iconWithTextClick}\n      buttonStyle={styles.button}\n      label={'TEXT with ICON'}\n      labelStyle={styles.textButtonStyle}\n      loading={iconAndTextLoading}\n      labelAndTextContainer={styles.labelAndTextContainer}\n      iconComponent={\n        \u003cIcon name=\"rocket\" size={20} color=\"#FFFFFF\" style={styles.icon} /\u003e\n      }\n      size={15}\n      type={'Bounce'}\n      color={'#FFFFFF'}\n      animationDuration={300}\n    /\u003e\n  );\n};\n```\n\n### Icon only\n\n```javascript\nimport React, {useState} from 'react';\nimport SpinkitButton from 'react-native-spinkit-button';\nimport Icon from 'react-native-vector-icons/dist/FontAwesome';\n\nconst App = () =\u003e {\n  const [onlyIconLoading, setOnlyIconLoading] = useState(false);\n\n  const onIconClick = () =\u003e {\n    setOnlyIconLoading(true);\n    setTimeout(() =\u003e {\n      setOnlyIconLoading(false);\n    }, 3000);\n  };\n\n  return (\n    \u003cSpinkitButton\n      width={270}\n      height={40}\n      borderRadius={11}\n      onPress={onIconClick}\n      buttonStyle={styles.button}\n      labelStyle={styles.textButtonStyle}\n      loading={onlyIconLoading}\n      labelAndTextContainer={styles.labelAndTextContainer}\n      iconComponent={\n        \u003cIcon name=\"rocket\" size={20} color=\"#FFFFFF\" style={styles.icon} /\u003e\n      }\n      size={15}\n      type={'Wave'}\n      color={'#FFFFFF'}\n      animationDuration={300}\n    /\u003e\n  );\n};\n```\n\n## Example\n\nA full working example project is here [react-native-spinkit-button/example](https://github.com/taimoorsultani/react-native-spinkit-button/tree/main/example)\n\n## Properties\n\n| Prop                  |   Default    |     Type      | Description                                      |\n| :-------------------- | :----------: | :-----------: | :----------------------------------------------- |\n| width                 |    `250`     |   `number`    | width of button                                  |\n| height                |     `40`     |   `number`    | height of button                                 |\n| borderRadius          |     `10`     |   `number`    | border radius of button                          |\n| buttonStyle           |     `{}`     |    `style`    | style of button                                  |\n| onPress               |  `() =\u003e {}`  |  `function`   | the function to execute on tap                   |\n| disabled              |   `false`    |    `bool`     | to disable the button                            |\n| labelAndTextContainer |     `{}`     |    `style`    | label container styles                           |\n| label                 |    `null`    |   `string`    | label of button                                  |\n| labelStyle            |     `{}`     |    `style`    | style of label                                   |\n| iconComponent         |    `null`    | `elementType` | `Icon` or `Image` component                      |\n| loading               |   `false`    |    `bool`     | bool value to render spinkit indicator or button |\n| size                  |     `10`     |   `number`    | size of spinkit indicator                        |\n| type                  | `CircleFlip` |    `oneOf`    | type of spinkit indicator                        |\n| color                 |  `#FFFFFF`   |   `string`    | color of spinkit indicator                       |\n| animationDuration     |    `400`     |   `number`    | duration of animation                            |\n\n### List of available spinkit indicator types\n\n- CircleFlip\n- Bounce\n- Wave\n- WanderingCubes\n- Pulse\n- ChasingDots\n- ThreeBounce\n- Circle\n- 9CubeGrid\n- WordPress (IOS only)\n- FadingCircle\n- FadingCircleAlt\n- Arc (IOS only)\n- ArcAlt (IOS only)\n\n## Acknowledgment and Big Thanks to\n\n[react-native-spinkit](https://github.com/maxs15/react-native-spinkit)\n[react-native-vector-icons](https://github.com/oblador/react-native-vector-icons)\n\n## License\n\nThis project is licensed under the MIT License -\n(c) 2021 [Muhammad Taimoor Sultani](https://github.com/taimoorsultani), [MIT license](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaimoorsultani%2Freact-native-spinkit-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaimoorsultani%2Freact-native-spinkit-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaimoorsultani%2Freact-native-spinkit-button/lists"}