Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PropTypes warnings #6

Closed
dule opened this issue Feb 1, 2017 · 5 comments
Closed

PropTypes warnings #6

dule opened this issue Feb 1, 2017 · 5 comments

Comments

@dule
Copy link

dule commented Feb 1, 2017

I'm getting a series of React warnings from this library:

Warning: You are manually calling a React.PropTypes validation function for the `onstyle` prop on `ReactBootstrapToggle`. This is deprecated and will not work in production with the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.

(One for each of the PropTypes defined in the lib)
I can't tell why though, it appears your use of PropTypes should still be valid..

@arnthor3
Copy link
Owner

arnthor3 commented Feb 1, 2017

I am going to try to reproduce it and see what I find.

@arnthor3
Copy link
Owner

arnthor3 commented Feb 1, 2017

I am trying to reproduce this but I just cant seem to get that error. I looked over the documents and this looks to be all right in the code as you pointed out.

@arnthor3
Copy link
Owner

arnthor3 commented Feb 1, 2017

Could you confirm that you are getting those errors on 2.0.2? I would love to fix this as well.

@dule
Copy link
Author

dule commented Feb 1, 2017

Yea, I'm still getting these on 2.0.2. I'm trying to narrow it down, and/or reproduce in an isolated project for you.

@dule
Copy link
Author

dule commented Feb 2, 2017

I upgraded my react, and these warnings have seem to have gone away. So all good :).

@dule dule closed this as completed Feb 2, 2017
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

No branches or pull requests

2 participants