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.PropTypes has been isolated into a separated package. #11

Closed
akmjenkins opened this issue Jan 22, 2018 · 2 comments
Closed

React.PropTypes has been isolated into a separated package. #11

akmjenkins opened this issue Jan 22, 2018 · 2 comments

Comments

@akmjenkins
Copy link
Contributor

RE: facebook/react-native#14590

React.PropTypes is no longer available for React > 15.5 (RN 0.52 depends on React 16.2).

You'll want to include prop-types as a peerDependency and change the code in StreetView.js

@DalalAbadi
Copy link

Install this to do the migration automatically :
https://github.com/reactjs/react-codemod

then run this command :
jscodeshift -t react-codemod/transforms/React-PropTypes-to-prop-types.js <your/project/path>

@akmjenkins
Copy link
Contributor Author

Issue has been resolved with 2c6f1a5

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