{"id":4185,"url":"https://github.com/phuochau/react-native-thumbnail","last_synced_at":"2025-08-04T00:32:32.006Z","repository":{"id":57129046,"uuid":"88714621","full_name":"phuochau/react-native-thumbnail","owner":"phuochau","description":"Get thumbnail from local media. Currently, it only supports for video.","archived":true,"fork":false,"pushed_at":"2019-11-29T10:29:46.000Z","size":390,"stargazers_count":136,"open_issues_count":30,"forks_count":101,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T07:54:13.530Z","etag":null,"topics":["react-native","react-native-component","react-native-thumbnail"],"latest_commit_sha":null,"homepage":"","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/phuochau.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":"2017-04-19T07:27:15.000Z","updated_at":"2025-05-23T19:07:07.000Z","dependencies_parsed_at":"2022-08-31T17:23:01.030Z","dependency_job_id":null,"html_url":"https://github.com/phuochau/react-native-thumbnail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phuochau/react-native-thumbnail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-thumbnail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-thumbnail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-thumbnail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-thumbnail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuochau","download_url":"https://codeload.github.com/phuochau/react-native-thumbnail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-thumbnail/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268634064,"owners_count":24281896,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"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":["react-native","react-native-component","react-native-thumbnail"],"created_at":"2024-01-05T20:17:03.798Z","updated_at":"2025-08-04T00:32:31.451Z","avatar_url":"https://github.com/phuochau.png","language":"Objective-C","funding_links":[],"categories":["Components","\u003ca name=\"Image-\u0026-Audio-\u0026-Video-\u0026-Docs:-Native-Modules\"\u003eImage, Audio, Video \u0026 Docs: Native Modules\u003c/a\u003e","Others"],"sub_categories":["UI"],"readme":"\n# react-native-thumbnail\nGet thumbnail from local media. Currently, it only supports for video.\n\n## Getting started\n\n`$ npm install react-native-thumbnail --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-thumbnail`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-thumbnail` and add `RNThumbnail.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNThumbnail.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNThumbnailPackage;` to the imports at the top of the file\n  - Add `new RNThumbnailPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-thumbnail'\n  \tproject(':react-native-thumbnail').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-thumbnail/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      implementation project(':react-native-thumbnail')\n  \t```\n\n## Usage\n```javascript\nimport RNThumbnail from 'react-native-thumbnail';\n\nRNThumbnail.get(filepath).then((result) =\u003e {\n  console.log(result.path); // thumbnail path\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuochau%2Freact-native-thumbnail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuochau%2Freact-native-thumbnail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuochau%2Freact-native-thumbnail/lists"}