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

componentWillReceiveProps is deprecated #262

Closed
Auticcat opened this issue Jul 23, 2019 · 2 comments
Closed

componentWillReceiveProps is deprecated #262

Auticcat opened this issue Jul 23, 2019 · 2 comments

Comments

@Auticcat
Copy link

Hello,

as i couldn't find an issue pointing it out. Using react-native 0.60+ there's this warning popping out while using this component about componentWillReceiveProps being deprecated.

As a workaround for now i'm using YellowBox.ignoreWarnings(['componentWillReceiveProps']);

The full warning says:
Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.

Thank you in advance!

@LuigiMaestrelli
Copy link

Also getting this warnings.
Any idea about when a fix will be released?

@jsdf
Copy link
Owner

jsdf commented Aug 12, 2019

@jsdf jsdf closed this as completed Aug 13, 2019
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