0.0.3 • Published 4 years ago

react-native-countup-component v0.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

react-native-countup

React Native Countup

Installation

Run npm install react-native-countup-component --save OR yarn add react-native-countup-component --save

Props

NameDescriptionTypeDefault Value
idCounter id, to determine whether to reset the counter or notstringnull
styleOverride the component styleobject{}
digitStyleDigit styleobject{backgroundColor: #FFFFFF '#FFFFFF'}
digitTxtStyleDigit Text styleobject{color: #FAB913 '#000'}
timeLabelStyleTime Label styleobject{color: #FAB913 '#000'}
separatorStyleSeparator styleobject{color: #FAB913 '#000'}
sizeSize of the countup componentnumber15
currentNumber of seconds to start countupnumber0
maxNumber of seconds to stop countupnumber0
onFinishWhat function should be invoked when the time is equal to maxfuncnull
onChangeWhat function should be invoked when the timer is changingfuncnull
onPressWhat function should be invoked when clicking on the timerfuncnull
timeToShowWhat Digits to showarray'D', 'H', 'M', 'S'
timeLabelsText to show in time labelobject{d: 'Days', h: 'Hours', m: 'Minutes', s: 'Seconds'}
showSeparatorShould show separatorboolfalse
runninga boolean to pause and resume the componentbooltrue