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

Update componentWillMount to componentDidMount before the next major version of React Native #375

Open
jeffraux opened this issue Sep 23, 2019 · 6 comments

Comments

@jeffraux
Copy link

jeffraux commented Sep 23, 2019

According to React Native 0.60:

componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.

See documentation here.

Edit: add link to React Native documentation

@jeffraux
Copy link
Author

See PR #376

@phpbook-sources
Copy link

i didnt create a pull request, but this is my index.js file fixed using componentDidMount and componentDidUpdate
index.zip

@tschempp-scs
Copy link

Could we get a fix for this? Seems like a simple change.

@usmansbk
Copy link

using patch-package to fix this for now

@Sumansourabh14
Copy link

@usmansbk what is patch-package?

@usmansbk
Copy link

usmansbk commented May 30, 2023

@usmansbk what is patch-package?

it's an NPM package for patching things before official fix.

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

5 participants