0.0.2 • Published 5 years ago

react-native-gfycat-export v0.0.2

Weekly downloads
2
License
Apache License 2....
Repository
github
Last release
5 years ago

React Native: react-native-gfycat-export

GitHub package version github home platforms github home npm

github issues github closed issues Issue Stats github license

📖 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

PropTypeDefaultNote
urlstringUrl of the file to be exported.
typenumber3File format to export.

Type

0) -small.gif 1) -max-1mb.gif 2) -size_restricted.gif 3) -mobile.mp4

📜 License

This library is provided under the Apache License.