react-native-timer-cutdown

0.1.3 • Public • Published

react-native-timer-cutdown

react-native-timer-cutdown

Introduce

2018-11-19 16 34 52

Installation

npm i react-native-timer-cutdown --save

Basic Usage

import TimerCutDown from "react-native-timer-cutdown";
 
 
render(){
    return(
        <TimerCutDown />
    )
}

Configuration

Properties:

Property Name Type Default Description
until number 60 timer number (>=0),unit:s
styles object {} see source code
afterEndOnChange function --- when time end,callback

Functions

Function Name Return Type Parameters Description
startCutDownTime void none start timer
stopCutDownTime void none stop timer or pause timer
restartCutDownTime void none restartCutDownTime timer
getTimeData number object until --->days,hours,minutes,seconds
formatTime number array until --->days,hours,minutes,seconds

Package Sidebar

Install

npm i react-native-timer-cutdown

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

8.62 kB

Total Files

6

Last publish

Collaborators

  • seawave