mrseawave / react-native-timer-cutdown Goto Github PK View Code? Open in Web Editor NEW 1.0 2.0 1.0 7 KB react-native-timer-cutdown JavaScript 100.00% Introduction ยท People ยท Discuss
react-native-timer-cutdown react-native-timer-cutdown Introduce 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
react-native-timer-cutdown react-native-timer-cutdown Introduce 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
Hide days and hours Hi! Nice job, congrats. I need just minutes and seconds, so I erased days and hours from index.js: {this._renderTimeText(newTime[0] + ':')} {this._renderTimeText(newTime[1] + ':')} I'd like to make it a cleaner way, but is good for me. See ya!
Vue.js ๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
javascript JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Machine learning Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Facebook We are working to build community through open source technology. NB: members must have two-factor auth.