0.1.3 • Published 5 years ago

react-native-timer-cutdown v0.1.3

Weekly downloads
28
License
MIT
Repository
github
Last release
5 years ago

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 NameTypeDefaultDescription
untilnumber60timer number (>=0),unit:s
stylesobject{}see source code
afterEndOnChangefunction---when time end,callback

Functions

Function NameReturn TypeParametersDescription
startCutDownTimevoidnonestart timer
stopCutDownTimevoidnonestop timer or pause timer
restartCutDownTimevoidnonerestartCutDownTime timer
getTimeDatanumberobjectuntil --->days,hours,minutes,seconds
formatTimenumberarrayuntil --->days,hours,minutes,seconds