{"id":4234,"url":"https://github.com/SiDevesh/React-Native-FAB","last_synced_at":"2025-08-04T00:32:46.066Z","repository":{"id":37927910,"uuid":"90680960","full_name":"sidevesh/react-native-fab","owner":"sidevesh","description":"A FAB button component for Android and iOS, customizable, simple and as per material design specs.","archived":false,"fork":false,"pushed_at":"2024-09-13T03:41:11.000Z","size":5405,"stargazers_count":77,"open_issues_count":4,"forks_count":29,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T22:58:24.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sidevesh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-08T23:19:28.000Z","updated_at":"2024-09-13T03:41:11.000Z","dependencies_parsed_at":"2023-02-16T07:30:41.437Z","dependency_job_id":"21ea7127-14fc-4af2-9a92-c1722a7c7601","html_url":"https://github.com/sidevesh/react-native-fab","commit_stats":{"total_commits":87,"total_committers":11,"mean_commits":7.909090909090909,"dds":0.5517241379310345,"last_synced_commit":"10facd0890ba582aab3cfa701d5bfbc1be4dd97a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-fab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-fab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-fab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidevesh%2Freact-native-fab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidevesh","download_url":"https://codeload.github.com/sidevesh/react-native-fab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228576898,"owners_count":17939645,"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":[],"created_at":"2024-01-05T20:17:05.348Z","updated_at":"2024-12-07T07:31:34.769Z","avatar_url":"https://github.com/sidevesh.png","language":"JavaScript","funding_links":[],"categories":["Components","React Native","Others"],"sub_categories":["UI","Components React Native"],"readme":"# react-native-fab\nA FAB button component for Android and iOS, customizable, simple and as per material design specs.\n\n![FAB demo](https://media.giphy.com/media/eUa3ywxwoBwwE/giphy.gif)\n![with snackbar](https://media.giphy.com/media/6oCCk98unakbC/giphy.gif)\n\nSee [Google Material Design](https://material.io/guidelines/components/buttons-floating-action-button.html) for more info on FABs.\n\n## Installation\n\n```sh\nnpm install --save react-native-fab\n```\n\n## Basic Usage\n\n```javascript\nimport FAB from 'react-native-fab'\n```\n\n## Code\n\n```js\n\u003cFAB buttonColor=\"red\" iconTextColor=\"#FFFFFF\" onClickAction={() =\u003e {console.log(\"FAB pressed\")}} visible={true} iconTextComponent={\u003cIcon name=\"all-out\"/\u003e} /\u003e\n```\n## Options\n| Prop        | Type           | Effect  | Default Value |\n| ------------- |-------------| -----| -----|\n| visible | boolean | Show or hide the FAB | true |\n| buttonColor | string | The color of FAB | red |\n| onClickAction | function | Function to be called when button is pressed | ()=\u003e{} |\n| iconTextColor | color | The  color of icon of FAB | #FFFFFF |\n| iconTextComponent | component | Text component or any other component based on it, works great with Icon from react-native-vector-icons | `\u003cText\u003e+\u003c/Text\u003e` |\n| snackOffset | number | The amount by which to move up the FAB to accomodate snackbar | 0 |\n\n## Note\n\n* When visible prop is changed, the FAB will be animated in/out of screen. \n* This works great together with [react-native-snackbar-component](https://github.com/sidevesh/react-native-snackbar-component). See [demo](https://github.com/sidevesh/snackbar-and-fab-demo) for example and instructions how to.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiDevesh%2FReact-Native-FAB","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSiDevesh%2FReact-Native-FAB","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSiDevesh%2FReact-Native-FAB/lists"}