talalmajali / react-native-countdown-component

React Native CountDown
MIT License
266 stars 233 forks source link

componentWillReceiveProps is deprecated #56

Closed 15matias15 closed 4 years ago

15matias15 commented 4 years ago

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

Please update the following components: CountDown

Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks

kristoff2016 commented 4 years ago

Hey, did you plan to update it? thanks

lewatt23 commented 4 years ago

Hey please can you work on that ?

dsernst commented 4 years ago

See PR https://github.com/talalmajali/react-native-countdown-component/pull/48

Ronaldofj commented 4 years ago

The PR #48 continues opened? You has a prevision for the merge? Thanks

khalidahmedshalabi commented 4 years ago

Update it please

fr3em1nd commented 4 years ago

same issue here.

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

fr3em1nd commented 4 years ago

got this fixed based on this doc:

https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

image

it worked on my end. Here's my personal repo:

https://github.com/fr3em1nd/react-native-countdown-component/tree/componentWillReceiveProps-issue

cnkyrpsgl commented 4 years ago

Any news ?

talalmajali commented 4 years ago

@cnkyrpsgl @15matias15 @kristoff2016 @lewatt23 @dsernst please upgrade the component to 2.7.1