react-native-countdown-component
react-native-countdown-component copied to clipboard
How can I get the value of the elapsed time to save it in localstorge?
onChange prop:
<CountDown
size={size}
until={seconds}
onFinish={(time) => {}}
onChange={(time) => {
console.log(`onChange={(time) => ${time}`)
}}
style={{marginTop: -20}}
digitStyle={{backgroundColor: '#FFF', width: size*1.4, height: size*1.4}}
digitTxtStyle={{color: '#000', fontWeight: '400'}}
separatorStyle={{color: '#000', marginTop: -20, fontWeight: '400'}}
timeToShow={['M', 'S']}
timeLabels={{m: null, s: null}}
showSeparator
/>