-
react-native-beautiful-timeline是一款具有完全可定制性和精美设计的React Native时间线组件
资源介绍
安装
添加依赖项:
npm i react - native - beautiful - timeline
对等依赖
重要! 您需要安装它们
"react" : ">= 16.x.x" ,
"react-native" : ">= 0.55.x" ,
"moment" : ">= 2.24.0" ,
"react-native-dash" : ">= 0.0.11" ,
"react-native-androw" : ">= 0.0.34" ,
"@freakycoder/react-native-helpers" : ">= 0.1.0" ,
用法
进口
import Timeline from "react-native-beautiful-timeline" ;
基本用法
资料格式
数据格式必须类似于此示例。
[
{
" date " : 1574342522000 ,
" data " : [
{
" title " : " React Native Beautiful Timeline " ,
" subti