root-two / react-native-drawer

React Native Drawer
MIT License
2.54k stars 392 forks source link

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

Open jeffraux opened 4 years ago

jeffraux commented 4 years ago

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 commented 4 years ago

See PR #376

phpbook-sources commented 4 years ago

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

tschempp-scs commented 4 years ago

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

usmansbk commented 4 years ago

using patch-package to fix this for now

Sumansourabh14 commented 1 year ago

@usmansbk what is patch-package?

usmansbk commented 1 year ago

@usmansbk what is patch-package?

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