react-native-gfycat-export
v0.0.2
Published
React Native library which allows you to export the gif and mp4 file.
Downloads
3
Maintainers
Readme
React Native: react-native-gfycat-export
📖 Getting started
$ npm install react-native-gfycat-export --save
💻 Usage
import * as React from 'react';
import { View } from 'react-native';
import { GfResolve } from 'react-native-gfycat-export';
let url = 'https://gfycat.com/clumsyfloweryamericancrayfish-happy-pcmasterrace-smile-joy';
export default class App extends React.Component {
componentDidMount() {
GfResolve(url, 3)
.then(r => console.log('Result:', r))
.catch(error => {
console.error('Error:', error);
});
}
render() { return null; }
}
💡 Props
| Prop | Type | Default | Note |
| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |
| url
| string
| | Url of the file to be exported.
| type
| number
| 3
| File format to export.
Type
-small.gif
-max-1mb.gif
-size_restricted.gif
-mobile.mp4
📜 License
This library is provided under the Apache License.