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

PropTypes warning after upgrade to react V15.5>

Open iswanj opened this issue 7 years ago • 2 comments

Warning: PropTypes has been moved to a separate package. Accessing React.PropTypes is no longer supported and will be removed completely in React 16. Use the prop-types package on npm instead. (https://fb.me/migrating-from-react-proptypes)

I can send a PR for this.

iswanj avatar Jul 29 '17 12:07 iswanj

Hi

I am getting different errors .... undefined is not an obeject(evaluating '_react.PropTypes.number') ... Can you please help me?

Sim923 avatar Jun 24 '18 16:06 Sim923

I solved it by using different import statement import PropTypes from 'prop-types'; which React.PropTypes has moved into a different package since React v15.5.

image

https://reactjs.org/docs/typechecking-with-proptypes.html

iainheng avatar Jul 23 '18 10:07 iainheng