react-native-datepicker icon indicating copy to clipboard operation
react-native-datepicker copied to clipboard

Fixed componentWillReceiveProps warning

Open alexnaiman opened this issue 6 years ago • 12 comments

Fixed componentWillReceiveProps warning Issue #355

alexnaiman avatar Sep 06 '19 13:09 alexnaiman

Coverage Status

Coverage remained the same at 97.368% when pulling d722086c6c6f96b17338f48a7b209e47161a751d on alexnaiman:fix_for_react_warning into 2a209bd4f11a84ff4543fbde930fed60dcbc0f68 on xgfe:master.

coveralls avatar Sep 06 '19 13:09 coveralls

Please merge this, want to get rid of the warning message.

ramonvermeulen avatar Sep 09 '19 13:09 ramonvermeulen

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

Please update the following components: DatePicker

Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks console.warn @ D:\React_Native\DatePickerApp\node_modules\react-native\Libraries\YellowBox\YellowBox.js:71

dj1993cse avatar Sep 12 '19 09:09 dj1993cse

+1 to merge this PR

cesar3030 avatar Sep 21 '19 00:09 cesar3030

@feyy

Is it possible to make a new release including this merge request? Package hasn't received any release since April 2018 while there are a lot of open merge requests with good code.

Maybe unpopular opinion: If you don't have the time to maintain the library, please try to find someone who does.

ramonvermeulen avatar Nov 14 '19 09:11 ramonvermeulen

@ramonvermeulen

@feyy If you don't have the time to maintain the library, please try to find someone who does.

I really agree with you and I will be really grateful if I can do that or at least be a part of that

alexnaiman avatar Nov 14 '19 14:11 alexnaiman

This looks like a dead project without maintainer :( I think it is time to either:

  1. look for an alternative, e.g. https://github.com/react-native-community/react-native-datetimepicker
  2. fork this repo and publish it under new name in npm registry

mieszko4 avatar Nov 25 '19 23:11 mieszko4

@mieszko4 at our company we went to the react-native-community version as well. Way better maintained.

ramonvermeulen avatar Nov 26 '19 08:11 ramonvermeulen

This looks like a dead project without maintainer :( I think it is time to either:

  1. look for an alternative, e.g. https://github.com/react-native-community/react-native-datetimepicker
  2. fork this repo and publish it under new name in npm registry

did you do it? If yes, then please share the new npm-package.

YahiaBadr avatar Apr 02 '20 15:04 YahiaBadr

This looks like it might be a good and maintained alternative, that solves the same issue as this project originally did: wrapping the core ios and android datepicker components from react native in a nice crossplatform api: https://github.com/mmazzarolo/react-native-modal-datetime-picker

It is wrapping the extracted versions in https://github.com/react-native-community/datetimepicker/issues rather than the deprecated ones that ship with react native core that this library does.

stianjensen avatar Apr 02 '20 15:04 stianjensen

I made this package https://www.npmjs.com/package/react-native-datepicker-yaya only to solve the warning of the componentWillReceiveProps. Everyone is welcomed to use it instead of this package.

YahiaBadr avatar Apr 02 '20 15:04 YahiaBadr

PLEASE MERGE!

GabrielDvt avatar Apr 11 '20 20:04 GabrielDvt