{"id":14971613,"url":"https://github.com/paraboly/react-native-switch-fab","last_synced_at":"2025-10-26T16:30:53.628Z","repository":{"id":38925760,"uuid":"231606433","full_name":"Paraboly/react-native-switch-fab","owner":"Paraboly","description":"Animated \u0026 Fully Customizable Switch Floating Action Button for React Native by Paraboly","archived":false,"fork":false,"pushed_at":"2023-01-27T04:34:57.000Z","size":1956,"stargazers_count":7,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T05:39:33.636Z","etag":null,"topics":["animated","animation","apple","button","fab","floating-action-button","ios","react","react-native","reactjs","switch","switch-fab","transition"],"latest_commit_sha":null,"homepage":"https:/paraboly.com","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/Paraboly.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":"2020-01-03T14:39:30.000Z","updated_at":"2024-03-30T23:01:59.000Z","dependencies_parsed_at":"2023-02-03T10:16:22.301Z","dependency_job_id":null,"html_url":"https://github.com/Paraboly/react-native-switch-fab","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paraboly%2Freact-native-switch-fab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paraboly%2Freact-native-switch-fab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paraboly%2Freact-native-switch-fab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paraboly%2Freact-native-switch-fab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paraboly","download_url":"https://codeload.github.com/Paraboly/react-native-switch-fab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238366788,"owners_count":19460186,"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":["animated","animation","apple","button","fab","floating-action-button","ios","react","react-native","reactjs","switch","switch-fab","transition"],"created_at":"2024-09-24T13:45:32.977Z","updated_at":"2025-10-26T16:30:53.105Z","avatar_url":"https://github.com/Paraboly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"React Native SwitchFab by Paraboly\" src=\"assets/logo.png\" width=\"1050\"/\u003e\n\n[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/@paraboly/react-native-switch-fab)\n\n[![Animated \u0026 Fully Customizable Switch Floating Action Button for React Native by Paraboly](https://img.shields.io/badge/-Animated%20%26%20Fully%20Customizable%20Switch%20Floating%20Action%20Button%20for%20React%20Native%20by%20Paraboly-lightgrey?style=for-the-badge)](https://github.com/WrathChaos/@paraboly/react-native-switch-fab)\n\n[![npm version](https://img.shields.io/npm/v/@paraboly/react-native-switch-fab.svg?style=for-the-badge)](https://www.npmjs.com/package/@paraboly/react-native-switch-fab)\n[![npm](https://img.shields.io/npm/dt/@paraboly/react-native-switch-fab.svg?style=for-the-badge)](https://www.npmjs.com/package/@paraboly/react-native-switch-fab)\n![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"React Native SwitchFab by Paraboly\"\n        src=\"assets/Screenshots/example.png\" /\u003e\n  \u003cimg alt=\"React Native SwitchFab by Paraboly\"\n        src=\"assets/Screenshots/example.gif\" /\u003e\n\u003c/p\u003e\n\n# Installation\n\nAdd the dependency:\n\n```ruby\nnpm i @paraboly/react-native-switch-fab\n```\n\n## Peer Dependencies\n\n###### IMPORTANT! You need install them\n\n```js\n\"react\": \"\u003e= 16.x.x\",\n\"react-native\": \"\u003e= 0.55.x\",\n\"react-native-androw\": \"\u003e= 0.0.34\",\n\"react-native-dynamic-vector-icons\": \"\u003e= 0.2.1\",\n\"react-native-material-ripple\": \"\u003e= 0.9.1\",\n\"react-native-vector-icons\": \"\u003e= 6.6.0\"\n```\n\n# Usage\n\n## Import\n\n```js\nimport SwitchFab from \"@paraboly/react-native-switch-fab\";\n```\n\n## Usage\n\n### Basic Usage\n\n```jsx\n\u003cSwitchFab /\u003e\n```\n\n### Advanced Usage\n\nCheck the example for the multiple \u0026 advanced usage\n\n```jsx\n\u003cSwitchFab\n  name=\"atom\"\n  type=\"Fontisto\"\n  rippleColor=\"transparent\"\n  activeBGColor=\"#00B1D2FF\"\n  inactiveBGColor=\"#FDDB27FF\"\n/\u003e\n```\n\n# Configuration - Props\n\n| Property          |      Type      |                    Default                    | Description                                                                                              |\n| ----------------- | :------------: | :-------------------------------------------: | -------------------------------------------------------------------------------------------------------- |\n| width             | string/number  |                      50                       | change the width of the button                                                                           |\n| height            | string/number  |                      50                       | change the height of the button                                                                          |\n| borderRadius      |     number     |                      25                       | change the border radius of the button                                                                   |\n| IconComponent     | Icon Component | Icon (from react-native-dynamic-vector-icons) | set your own Icon component it can be your own MyIcon component or react-native-vector-icons or anything |\n| isActive          |    boolean     |                     false                     | set the default active button                                                                            |\n| onPress           |    function    |                   undefined                   | set your own logic for onPress it has callback for (isActive)                                            |\n| animationDuration |     number     |                      750                      | change the animation duration for background color transition                                            |\n| shadowColor       |     color      |                    #757575                    | change the button's shadow color                                                                         |\n| activeBGColor     |     color      |                    #757575                    | change the button's active background color                                                              |\n| inactiveBGColor   |     color      |                    #fdfdfd                    | change the button's inactive background color                                                            |\n| activeIconColor   |     color      |                    #757575                    | change the button's active icon color                                                                    |\n| inactiveIconColor |     color      |                    #fdfdfd                    | change the button's inactive icon color                                                                  |\n| animationDuration |     number     |                      750                      | change the animation duration for background color transition                                            |\n| animationDuration |     number     |                      750                      | change the animation duration for background color transition                                            |\n\n## Future Plans\n\n- [x] ~~LICENSE~~\n- [x] ~~New Screenshots~~\n- [ ] Write an article about the lib on Medium\n\n## Author\n\nFreakyCoder, kurayogun@gmail.com\n\n## License\n\nReact Native SwitchFab by Paraboly is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparaboly%2Freact-native-switch-fab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparaboly%2Freact-native-switch-fab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparaboly%2Freact-native-switch-fab/lists"}