mapbox / react-colorpickr

A themeable colorpicker with HSL and RGB support for React

Home Page:https://labs.mapbox.com/react-colorpickr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React.PropTypes not compatible with React 16

aparlato opened this issue · comments

React.PropTypes is not compatible with React 16 which no longer gives a warning about this being deprecated like 15, but actually errors on it.

This should be replaced with prop-types module.

https://github.com/mapbox/react-colorpickr/blob/mb-pages/dist/inputs/number-input.js#L32-L36
(appears in other places as well)

can I take this issue , and work on migration to PropTypes package?

@M-ZubairAhmed that would be great!

i have going through souce code it seems in folder src proptypes as a seperate package is already added. Should i continue to add it in files under dist?

Please see PR103 is this what you are looking for?