{"id":17675342,"url":"https://github.com/numandev1/react-native-profile-avatar","last_synced_at":"2025-03-30T17:12:58.028Z","repository":{"id":132998556,"uuid":"163560429","full_name":"numandev1/React-native-Profile-Avatar","owner":"numandev1","description":null,"archived":false,"fork":false,"pushed_at":"2018-12-30T04:08:49.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T18:50:47.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/numandev1.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":"2018-12-30T04:06:03.000Z","updated_at":"2018-12-30T04:08:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"22d80cd3-c0f9-474f-9765-03a8645333ca","html_url":"https://github.com/numandev1/React-native-Profile-Avatar","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/numandev1%2FReact-native-Profile-Avatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2FReact-native-Profile-Avatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2FReact-native-Profile-Avatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numandev1%2FReact-native-Profile-Avatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numandev1","download_url":"https://codeload.github.com/numandev1/React-native-Profile-Avatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246351019,"owners_count":20763232,"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-10-24T07:10:48.577Z","updated_at":"2025-03-30T17:12:58.003Z","avatar_url":"https://github.com/numandev1.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native User Avatar\n\n[![npm version](https://img.shields.io/npm/v/react-native-user-avatar.svg?style=flat-square)](https://www.npmjs.com/package/react-native-user-avatar)\n[![npm downloads](https://img.shields.io/npm/dm/react-native-user-avatar.svg?style=flat-square)](https://www.npmjs.com/package/react-native-user-avatar)\n\nA bare-bones user avatar display with support for falling back to using the user's initials on a colored background as the avatar.\nBased on the great library for React: https://github.com/wbinnssmith/react-user-avatar, and ported to React Native.\n\n![](http://i.imgur.com/LJjK9cl.png)\n\n## Installation\n\n`npm install --save react-native-user-avatar` or `yarn add react-native-user-avatar`\n\n## Usage\n\n```js\n  \u003cUserAvatar size=\"100\" name=\"Avishay Bar\" /\u003e\n  \u003cUserAvatar size=\"100\" name=\"Avishay Bar\" src=\"https://dummyimage.com/100x100/000/fff\" /\u003e\n  \u003cUserAvatar size=\"50\" name=\"John Doe\" colors={['#ccc', '#fafafa', '#ccaabb']}/\u003e\n  \u003cUserAvatar size=\"50\" name=\"John Doe\" /\u003e\n  \u003cUserAvatar size=\"50\" name=\"Jane Doe\" color=\"#000\" /\u003e\n```\n\n## User-defined Image-Component\n\nIt is also possible to use another Image-Component than the built-in `\u003cImage\u003e`.\n\n```js\n  \u003cUserAvatar size=\"50\" name=\"John Doe\" component={CachedImage} /\u003e\n```\n\nThe fallback avatar's color may be set by passing in the `color` prop, or you can customize the range of colors\nused by passing in an array of `colors`. The component uses a simple calculation to consistently use the same\ncolor for the same user's name every time.\n\n## Credits\n\n@wbinnssmith\n\n##License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-profile-avatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumandev1%2Freact-native-profile-avatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumandev1%2Freact-native-profile-avatar/lists"}