【文件属性】:
文件名称:react-giphy-picker:从Giphy中搜索并选择GIF
文件大小:1.82MB
文件格式:ZIP
更新时间:2021-05-14 13:30:11
JavaScript
React图选择器
react-giphy-picker是使用giphy API的简单gif选择器组件
选中后,它以Giphy的搜索API 为图像指定的格式返回Gif对象。
安装
npm install react-giphy-picker --save
基本用法
import Picker from 'react-giphy-picker'
import ReactDOM from 'react-dom'
import React , { Component , PropTypes } from 'react'
class TestComponent extends Component {
log ( gif ) {
console . log ( gif )
}
render ( ) {
return (
< div>
<
【文件预览】:
react-giphy-picker-master
----yarn.lock(297KB)
----src()
--------Picker.js(4KB)
--------__tests__()
----.babelrc(108B)
----lib()
--------Picker.js(10KB)
--------__tests__()
----example()
--------index.html(187B)
--------webpack.config.js(533B)
--------screenshot.gif(1.7MB)
--------index.js(1016B)
----README.md(2KB)
----.gitignore(37B)
----package.json(1KB)