video compressor
yarn add react-native-lightcompressor
npm install react-native-lightcompressor
import { compress, VideoQuality, cancel } from 'react-native-lightcompressor';
// ...
const r = await compress({
uri: 'file://path_of_file/video.mp4',
quality: VideoQuality.MEDIUM,
onProgress: (p: number) => console.log('progress--> ', p),
onStart: () => console.log('start'),
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT