Skip to content

React native package for Video compression using LightCompressor library.

License

Notifications You must be signed in to change notification settings

saggiyogesh/react-native-lightcompressor

Repository files navigation

react-native-lightcompressor

video compressor

Installation

yarn add react-native-lightcompressor
npm install react-native-lightcompressor

Usage

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'),
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT