react-native-icon-checkbox
react-native-icon-checkbox copied to clipboard
PropTypes warning after upgrade to react V15.5>
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.
Hi
I am getting different errors .... undefined is not an obeject(evaluating '_react.PropTypes.number') ... Can you please help me?
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.
https://reactjs.org/docs/typechecking-with-proptypes.html