I am creating a timer and set the during the (session stop time - the current time). This logic is working until I kill the app and come back again. The timer is restarted to the initial state. How should I resolve this issue?
Thanks
<CountdownCircleTimer
isPlaying
duration={(currentUserRedux.session.stopTime - Date.now()) / 1000}
colors={["#004777", "#F7B801", "#A30000", "#A30000"]}
colorsTime={[7, 5, 2, 0]}
size={50}
strokeWidth={6}
onComplete={() => {
handleStopSessionClick();
}}
I am creating a timer and set the during the (session stop time - the current time). This logic is working until I kill the app and come back again. The timer is restarted to the initial state. How should I resolve this issue? Thanks <CountdownCircleTimer isPlaying duration={(currentUserRedux.session.stopTime - Date.now()) / 1000} colors={["#004777", "#F7B801", "#A30000", "#A30000"]} colorsTime={[7, 5, 2, 0]} size={50} strokeWidth={6} onComplete={() => { handleStopSessionClick(); }}