【文件属性】:
文件名称:react-native-calendar-heatmap:React-native日历热图,受Github贡献图的启发
文件大小:616KB
文件格式:ZIP
更新时间:2021-05-02 13:42:13
JavaScript
React本机日历热图
安装
添加依赖项:
React Native:
npm i react - native - calendar - heatmap
对等依赖
重要的! 您需要安装它们。
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"lodash": ">= 4.17.10",
"react-native-svg": ">= 6.5.2"
用法
导入组件:
import CalendarHeatmap from 'react-native-calendar-heatmap' ;
要显示截至4月1日的100天的基本热图:
< CalendarHeatmap
endDate = { new Date ( '2016-04-01' ) }
numDays = { 100 }
values = { [
{
【文件预览】:
react-native-calendar-heatmap-master
----.gitignore(825B)
----package.json(739B)
----package-lock.json(7KB)
----assets()
--------Screenshots()
--------logo.png(15KB)
----__tests__()
--------index.spec.js(129B)
----README.md(3KB)
----example()
--------.gitignore(813B)
--------.flowconfig(2KB)
--------package.json(752B)
--------package-lock.json(329KB)
--------.buckconfig(114B)
--------android()
--------.watchmanconfig(2B)
--------metro.config.js(300B)
--------ios()
--------index.js(183B)
--------__tests__()
--------App.js(2KB)
--------.eslintrc.js(74B)
--------babel.config.js(77B)
--------staticData()
--------.gitattributes(16B)
--------app.json(51B)
--------yarn.lock(277KB)
----lib()
--------src()
----.npmignore(85B)
----.gitattributes(16B)