Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventEmitter.removeListener('appStateDidChange', ...): Method has been deprecated. Please instead use remove() on the subscription returned by EventEmitter.addListener. #121

Open
chungtvdev opened this issue Mar 12, 2023 · 2 comments

Comments

@chungtvdev
Copy link

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 by EventEmitter.addListener.

How to fix this?

Countdown

@johndev247
Copy link

Am having the same Issue when I upgraded to expo SDK 47

@anniewey
Copy link

anniewey commented Jun 12, 2023

need to wait for @talalmajali to merge pr #114 to fix the warning or use patch-package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants