luqin / react-icheck

:radio_button: iCheck components built with React. Highly customizable checkbox, radio buttons and radio group.
https://luqin.github.io/react-icheck
177 stars 40 forks source link

Fix prop-types #41

Closed manosim closed 7 years ago

manosim commented 7 years ago

Hi there! In the latest react release there is a deprecation warning about using React.PropTypes. You can read more on the react blog.

image

This PR, adds prop-types as a dependency and replaces the use of React.PropTypes to use them from the separate library.

A similar replacement example can be found at https://github.com/reactjs/react-modal/pull/374.

Ps. It would be great if you can cut a new release for this one since it will make the console warning-free again 😄

manosim commented 7 years ago

Thank you @luqin for sorting out this one so fast 🎉