Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-timer-cutdown

MrSeaWave4MIT0.1.3

timer-cutdown

react-native, timer-cutdown

readme

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