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

RN 0.51.0 Error: Undefined is not an object (evaluating '_react2.PropTypes.string') #35

Open
crim3hound opened this issue Mar 9, 2018 · 2 comments

Comments

@crim3hound
Copy link

crim3hound commented Mar 9, 2018

Getting the following error in React Native 0.51.0
undefined is not an object (evaluating '_react2.PropTypes.string')

I have managed to find a fix by removing the PropTypes import from react, and replacing it with import PropTypes from 'prop-types';.

Submitting a PR for review.
screenshot_20180309-051134

@xiamx
Copy link

xiamx commented Mar 9, 2018

Linking to the pull request that OP made #36

@josepht1
Copy link

Thanks Anti- I ran into the same error and I fixed the same way you did.

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

3 participants