EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`. #121
Our code is belows:
<View style={{alignItems: 'flex-end'}}>
<CountDown
until={1140}
size={15}
onFinish={() => alert('Hết thời gian trắc nghiệm')}
digitStyle={{backgroundColor: COLORS.shopeeOrange, opacity: 0.5}}
digitTxtStyle={{color: COLORS.black, fontSize: 18}}
timeToShow={['M', 'S']}
timeLabels={{m: '', s: ''}}
/>
When i exit the screen of the view: the error will be shown:
EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated. Please instead use remove() on the subscription returned by EventEmitter.addListener.
React native: 0.68.5 react-native-countdown-component": "^2.7.1",
Our code is belows: <View style={{alignItems: 'flex-end'}}> <CountDown until={1140} size={15} onFinish={() => alert('Hết thời gian trắc nghiệm')} digitStyle={{backgroundColor: COLORS.shopeeOrange, opacity: 0.5}} digitTxtStyle={{color: COLORS.black, fontSize: 18}} timeToShow={['M', 'S']} timeLabels={{m: '', s: ''}} /> When i exit the screen of the view: the error will be shown: EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated. Please instead use
remove()
on the subscription returned byEventEmitter.addListener
.How to fix this?