Skip to content

React.PropTypes will be deprecated#63

Open
jedkl15 wants to merge 50 commits intofeature/allow-width-overridefrom
master
Open

React.PropTypes will be deprecated#63
jedkl15 wants to merge 50 commits intofeature/allow-width-overridefrom
master

Conversation

@jedkl15
Copy link

@jedkl15 jedkl15 commented Apr 17, 2018

Hello qimingweng
React.PropTypes will be deprecated in React v16

I use your react-modal-dialog in my application and I will be very grateful when you fix it in next release.
Could you change your repository?
It need three minutes to fix it.

Please add line:
var _propTypes = require('prop-types');

and on the end of your file change proptypes

CloseCircle.propTypes = {
diameter: _propTypes.number.isRequired
};

Please change it in every file where you using old React.PropTypas.
I will be very grateful when my application will start working again, because now this warning stops rendering content.
I am waiting for next version of react-modal-dialog.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants