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

react 16 Deprecated React.PropTypes #135

Open
zkeyword opened this issue Jan 25, 2018 · 4 comments
Open

react 16 Deprecated React.PropTypes #135

zkeyword opened this issue Jan 25, 2018 · 4 comments

Comments

@zkeyword
Copy link

"react": "^16.2.0",
"react-native": "^0.51.0",

@lucalas
Copy link

lucalas commented Feb 1, 2018

Have you installed using npm command?
I had the same problem because it isn't the last version instead use the last github repository version that resolve the proptypes deprecation.

UPDATE:
You can find the answer here: #issues129

@zkeyword
Copy link
Author

zkeyword commented Mar 8, 2018

yes, i installed using npm command

@andrejkovacik
Copy link

I'm getting this error (when using Player component)

Cannot read property 'string' of undefined

this is from

Player.propTypes = {
    url: React.PropTypes.string.isRequired
};

@manishkumar17963
Copy link

download prop-types package from node package manager and then import PropTypes from 'prop-types' and change React.PropTypes.string.isRequired to PropTypes.string.isRequired

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

4 participants