-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Replace React PropTypes with prop-types in RN CLI/examples #1710
Conversation
What happens if they haven't installed the |
They will get an error ? |
Sure, but are we OK with that? If they are using an old version of React? Probably it's OK now.. |
Or is it OK because our packages depend on |
Our UI depends on it indeed, unless npm decided to be a 🐒 and not install flat, the module should always be there, no error occur. |
Ok, I'll consider us completely safe then. |
Thanks to eslint, we have it as a dependency everywhere it's used, as docs suggest |
Generators don't add it though, and I believe we should fix that (as we did with |
I agree! |
Issue: CLI was still using react PropTypes which are deprecated
What I did
Upgraded RN to use
prop-types
packageHow to test