moschan / react-native-simple-radio-button

Simple and handy animated radio button component for React Native
MIT License
453 stars 130 forks source link

componentWillUpdate warnings #129

Closed StasD closed 5 years ago

StasD commented 5 years ago

Hi, Is it possible for you to update the code to remove the use of componentWillUpdate methods, as there are warnings all over the place when I run the app with your component in the simulator, like this:

Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

Please update the following components: RadioButton 

Thanks in advance.

StasD commented 5 years ago

Oh, I see this component hasn't been updated for almost two years... So, nevermind.