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

lifecycle has been renamed #196

Open
itkasumy opened this issue Oct 9, 2019 · 1 comment
Open

lifecycle has been renamed #196

itkasumy opened this issue Oct 9, 2019 · 1 comment

Comments

@itkasumy
Copy link

itkasumy commented Oct 9, 2019

I used latest react-nativ, and got this warning:
componentWillReceiveProps has been renamed, and is not recommended for use.

@pql
Copy link

pql commented Nov 30, 2019

React v16.9.0 到你的安装的报警告的依赖根目录下执行下面的命令可以修复(原文出自:https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#renaming-unsafe-lifecycle-methods)
cd your_project
npx react-codemod rename-unsafe-lifecycles

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

2 participants