video compressor
yarn add react-native-lightcompressornpm install react-native-lightcompressorimport { 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