react-native-element-timer
react-native-element-timer copied to clipboard
Countdown resets on every setState
Every time when there is a re-render on the page, the Countdown component resets itself, making it unusable with custom buttons or any other dynamic element. Any suggestion how to fix this?
hi @mchriss , I don't know exactly how your lines of code are? maybe after the change state you did there was a container wrapped outside the re-render.
hi @mchriss , This issue is resolved. Please install later version.
I'm reopening this issue, because now I can't even get the Countdown working.. when I call the ref.current.start() function, I get the following error: TypeError: null is not an object (evaluating 'RNBackgroundTimer.setTimeout')