reactjs-giphy
React component to work with GIFs (Giphy API)
Install
npm install reactjs-giphy
Usage
Trending
import React Component from 'react' import Giphy from 'reactjs-giphy' { return data } { return <Giphy = /> }
By GIF ID
import React Component from 'react' import Giphy from 'reactjs-giphy' { return <img = /> } { return <Giphy = = /> }
Props
render
handler returns gifs from Giphy API (required, function)
id
gif ID that should be fetched from Giphy API (string)
searchTerm
search gifs by title (string)
offset
skip some count gifs from start (number)
apiKey
Giphy API api key (string)
upload
upload provided Gif (object ex. {username: 'John', src: 'Some gif source'})
sortBy
Sort by Gif's uploaded time (string ex. 'ASC', 'DESC')
License
MIT © ArmanGhazaryan94