{"id":23733931,"url":"https://github.com/narcello/react-avatar-firebase","last_synced_at":"2025-09-04T09:33:17.783Z","repository":{"id":39354206,"uuid":"213544826","full_name":"narcello/react-avatar-firebase","owner":"narcello","description":":raising_hand: Easily Avatar on Firebase Storage","archived":false,"fork":false,"pushed_at":"2023-01-04T22:26:41.000Z","size":5132,"stargazers_count":5,"open_issues_count":51,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-25T14:04:18.423Z","etag":null,"topics":["avatar","firebase","firebase-storage","npm-package","reactjs"],"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/narcello.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":"2019-10-08T03:54:19.000Z","updated_at":"2022-12-12T19:21:54.000Z","dependencies_parsed_at":"2023-02-02T22:00:51.027Z","dependency_job_id":null,"html_url":"https://github.com/narcello/react-avatar-firebase","commit_stats":null,"previous_names":["marcellovsilva/react-avatar-firebase"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Freact-avatar-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Freact-avatar-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Freact-avatar-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narcello%2Freact-avatar-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narcello","download_url":"https://codeload.github.com/narcello/react-avatar-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231949213,"owners_count":18450456,"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":["avatar","firebase","firebase-storage","npm-package","reactjs"],"created_at":"2024-12-31T05:32:06.203Z","updated_at":"2024-12-31T05:32:44.633Z","avatar_url":"https://github.com/narcello.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-avatar-firebase\n\n\u003e Easily Avatar on Firebase Storage\n\n\n[![](https://img.shields.io/npm/v/react-avatar-firebase.svg)](https://www.npmjs.com/package/react-avatar-firebase) [![](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n![](https://img.shields.io/david/peer/MarcelloVSilva/react-avatar-firebase)\n![](https://img.shields.io/bundlephobia/min/react-avatar-firebase)\n![](https://img.shields.io/david/dev/MarcelloVSilva/react-avatar-firebase)\n## Install\n\n```bash\nnpm install --save react-avatar-firebase\n```\n\n## Documentation\nUse react-avatar-firebase for upload avatar on Firebase Storage.\n\n| Props  |  Definition |\n| ------------ | ------------ |\n| pathToStorage  |  Name of folder/path where you will save your avatar on storage |\n| imageSrc |  Pass a image url to render |\n| handleGetImage | Callback that gives you a return of upload of image on storage |\n| animationTime | defines hover avatar wrapper animation time |\n| size | defines avatar wrapper px size |\n| borderColor | defines border color |\n| borderOpacity | defines border opacity |\n| readOnly | True for disable image selection  |\n| storage | Object ref of firebase storage reference  |\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport RAF from 'react-avatar-firebase'\n\nconst App = () =\u003e {\n  return (\n    \u003cdiv\u003e\n      \u003cRAF\n        pathToStorage=\"avatars\"\n        imageSrc={imageSrc}\n        handleGetImage={handleGetImage}\n        animationTime='0.3s'\n        size={128}\n        borderColor='#e2e2e2'\n        borderOpacity={0.9}\n        storage={'\u003cyour firebase storage instance here\u003e'}\n       /\u003e\n    \u003c/div\u003e\n  )\n}\nexport default App\n```\n\n## Local test\n\nRun `yarn start` at root folder and at example folder\n\n## License\n\nMIT © [MarcelloVSilva](https://github.com/MarcelloVSilva)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarcello%2Freact-avatar-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarcello%2Freact-avatar-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarcello%2Freact-avatar-firebase/lists"}