{"id":19310907,"url":"https://github.com/kartikeyvaish/expo-like-button","last_synced_at":"2026-05-02T08:34:30.537Z","repository":{"id":104064271,"uuid":"431390661","full_name":"kartikeyvaish/expo-like-button","owner":"kartikeyvaish","description":"Animated Like Button Component for React native apps made using expo.","archived":false,"fork":false,"pushed_at":"2021-11-24T08:34:27.000Z","size":563,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T04:51:30.197Z","etag":null,"topics":["expo","like","react-native"],"latest_commit_sha":null,"homepage":"https://github.com/kartikeyvaish/expo-like-button","language":"TypeScript","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/kartikeyvaish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-24T07:42:34.000Z","updated_at":"2021-11-24T12:29:40.000Z","dependencies_parsed_at":"2023-06-01T23:00:28.166Z","dependency_job_id":null,"html_url":"https://github.com/kartikeyvaish/expo-like-button","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"c5318c3c7fee88bfcc8be4a1844233c1d86b151a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kartikeyvaish/expo-like-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2Fexpo-like-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2Fexpo-like-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2Fexpo-like-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2Fexpo-like-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kartikeyvaish","download_url":"https://codeload.github.com/kartikeyvaish/expo-like-button/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartikeyvaish%2Fexpo-like-button/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32528337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["expo","like","react-native"],"created_at":"2024-11-10T00:26:53.672Z","updated_at":"2026-05-02T08:34:30.522Z","avatar_url":"https://github.com/kartikeyvaish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expo Like Button\n\nProvides an animated like/unlike button for reusability.\n\n## Features\n\n- Animated Like Button\n- Fully customizable\n\n## ✨ Preview\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/4FhxI6u.gif\" width=300 height=700 /\u003e\n\u003c/p\u003e\n\n## Installation\n\nJust run the below command in your project folder\n\nNote:- This runs only in an Expo Managed and Bare(expo) project and not in React Native CLI project.\n\nTo install,\n\n    npm install --save expo-like-button\n\n## Usage\n\n### UnControlled Component\n\nBelow shown is the usage of the component as an uncontrolled component.\n\n```javascript\nimport LikeButton from 'expo-like-button';\n\n...\n\n// basic Usage\n\u003cLikeButton /\u003e\n```\n\n### Controlled Component\n\nFor controlled component, you can use it as shown.\n\n```javascript\nimport LikeButton from \"expo-like-button\";\n\nconst [Liked, SetLiked] = useState(true);\n\nconst onLikePress = async () =\u003e {\n  // Do something for Like operation\n  SetLiked(true);\n};\n\nconst onUnLikePress = async () =\u003e {\n  // Do something for Like operation\n  SetLiked(true);\n};\n\n// basic Usage\n\u003cLikeButton liked={Liked} onPress={Liked ? onUnLikePress : onLikePress} /\u003e;\n```\n\n## Parameters\n\n### Basic Parameters\n\n| Parameter | Default     | Description                                                                                         |\n| --------- | ----------- | --------------------------------------------------------------------------------------------------- |\n| liked     | `undefined` | Color of the timestamp which shows total time that has been elapsed since the video started playing |\n| onPress   | `undefined` | Color of the timestamp which shows total duration of the clip                                       |\n| iconSize  | `undefined` | Color of the timestamp which shows total duration of the clip                                       |\n\n### Liked Icon Component Props\n\n| Parameter            | Default           | Description                                                                        |\n| -------------------- | ----------------- | ---------------------------------------------------------------------------------- |\n| likedColor           | `red`             | Color of the liked icon                                                            |\n| likedIconName        | `\"heart-outline\"` | name of the icon when liked is true (Derived from `MaterialCommunityIcons` family) |\n| customLikedComponent | `null`            | custom component to show in place of liked icon                                    |\n\n### UnLiked Icon Component Props\n\n| Parameter              | Default   | Description                                                                         |\n| ---------------------- | --------- | ----------------------------------------------------------------------------------- |\n| unlikedColor           | `black`   | Color of the unliked icon                                                           |\n| unlikedIconName        | `\"heart\"` | name of the icon when liked is false (Derived from `MaterialCommunityIcons` family) |\n| customUnlikedComponent | `null`    | custom component to show in place of unliked icon                                   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikeyvaish%2Fexpo-like-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkartikeyvaish%2Fexpo-like-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartikeyvaish%2Fexpo-like-button/lists"}