react-native-countdown-component icon indicating copy to clipboard operation
react-native-countdown-component copied to clipboard

How can I get the value of the elapsed time to save it in localstorge?

Open ivancostilla opened this issue 4 years ago • 1 comments

ivancostilla avatar Sep 02 '21 20:09 ivancostilla

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
    />

mutablestudio avatar Oct 17 '22 16:10 mutablestudio