React Native开源秒杀倒计时模块(react-native-CountDowntimer)
来源:互联网 发布:矩阵的奇异值分解 编辑:程序博客网 时间:2024/06/06 03:57
react-native-CountDowntimer,
只需要添加一个结束时间的倒计时控件,适用于秒杀的商品列表页面,欢迎围观,
欢迎star。https://github.com/jackuhan/react-native-CountDowntimer
开源项目地址: https://github.com/jackuhan/react-native-CountDowntimer
(一).项目介绍
在开发电商相关的APP的时候,经常会有秒杀,团购的倒计时的需求,这边跟大家推荐一个开源的倒计时组件。该只需要添加一个结束时间。适用于商品秒杀页面等等。
刚创建的React Native交流十群:157867561,欢迎各位大牛,React Native技术爱好者加入交流!同时博客右侧欢迎微信扫描关注订阅号,移动技术干货,精彩文章技术推送!
(二).部分效果
(三).使用方法
date
iso 格式 或者 js dates格式的结束时间。
使用demo
import CountDown from './CountDownReact' <CountDown //date={new Date(parseInt(endTime))} date="2017-11-28T00:00:00+00:00" days={{plural: 'Days ',singular: 'day '}} hours=':' mins=':' segs='' daysStyle={styles.time} hoursStyle={styles.time} minsStyle={styles.time} secsStyle={styles.time} firstColonStyle={styles.colon} secondColonStyle={styles.colon} />
0 0
- React Native开源秒杀倒计时模块(react-native-CountDowntimer)
- react-native 自定义倒计时按钮
- Android Native嵌入React Native模块
- react-native 添加 Toast 模块
- react native使用原生模块
- React Native十四:原生模块
- React Native之AppRegistry模块
- React Native使用指南-原生模块
- React Native创建原生模块
- react native使用原生模块
- react native
- React Native
- React Native
- React- Native
- react-native
- React Native
- React Native
- react native
- android bitmap 属性 BitmapFactory 属性 bitmapDrawable属性
- CentOS7 linux内核更新
- 13-每天一个Linux命令 less
- 详解Android中AsyncTask的使用
- MVC Asp.Net Mvc在cshtml中输出html
- React Native开源秒杀倒计时模块(react-native-CountDowntimer)
- java中字符数组和字符串的相互转换
- 等效串联电阻
- Linux 路由表
- Ubuntu默认不进入图形界面
- Linux下文件权限问题
- 系统查询正在执行的sql语句及查询锁
- servlet中请求转发(forword)与重定向(sendredirect)的区别
- 从零开始,学习web前端之jQuery