{"id":4276,"url":"https://github.com/phuochau/react-native-compress","last_synced_at":"2025-04-04T21:31:43.308Z","repository":{"id":57336190,"uuid":"89562962","full_name":"phuochau/react-native-compress","owner":"phuochau","description":"Compress video for react native. Only for iOS, Android will be coming.","archived":false,"fork":false,"pushed_at":"2019-12-02T05:07:40.000Z","size":11,"stargazers_count":35,"open_issues_count":8,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T19:29:35.584Z","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":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-27T06:22:58.000Z","updated_at":"2023-03-09T02:24:34.000Z","dependencies_parsed_at":"2022-09-11T05:53:59.899Z","dependency_job_id":null,"html_url":"https://github.com/phuochau/react-native-compress","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/phuochau%2Freact-native-compress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-compress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-compress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuochau%2Freact-native-compress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuochau","download_url":"https://codeload.github.com/phuochau/react-native-compress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247252241,"owners_count":20908651,"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:06.618Z","updated_at":"2025-04-04T21:31:42.270Z","avatar_url":"https://github.com/phuochau.png","language":"Objective-C","funding_links":[],"categories":["Components","Others","\u003ca name=\"Image-\u0026-Audio-\u0026-Video-\u0026-Docs:-Native-Modules\"\u003eImage, Audio, Video \u0026 Docs: Native Modules\u003c/a\u003e"],"sub_categories":["UI"],"readme":"\n# react-native-compress\nCompress local video for react native. Only for iOS, Android will be coming.\n\n## Getting started\n\n`$ npm install react-native-compress --save`\n\n### Mostly automatic installation\n\n`$ react-native link react-native-compress`\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-compress` and add `RNCompress.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNCompress.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.hauvo.compress.RNCompressPackage;` to the imports at the top of the file\n  - Add `new RNCompressPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-compress'\n  \tproject(':react-native-compress').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-compress/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-compress')\n  \t```\n\n## Usage\n```javascript\nimport RNCompress from 'react-native-compress';\n// quality will be \"low\", \"medium\" or \"high\"\nRNCompress.compressVideo(filePath, quality)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuochau%2Freact-native-compress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuochau%2Freact-native-compress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuochau%2Freact-native-compress/lists"}