npm.io
0.0.3 • Published 9 years ago

react-native-video-to-gif

Licence
ISC
Version
0.0.3
Deps
0
Vulns
0
Weekly
0
Stars
12

react-native-video-to-gif

Convert video to gif

Note: this project is ios only, but any PR are welcome

Installation Process

  • download this from npm
npm install react-native-video-to-gif --save

Auto linking

  • Not yet supported for now, any PR are welcome
Manual linking
  • Add RNNSGif.xcodeproj to Libraríe folder on Xcode Project :

  • Add libRNNSGif.a to Link Binary with Libraris in Build Phases:

Usage

import RNGif from 'react-native-video-to-gif';

// methods (Just iOs for now)
RNGif.convert(pathToLocalVideo).then((gifPath) => {
  console.log('Video is converted to gif at: ', gifPath);
});

Keywords