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

Installation was ok, but got "undefined is not an object (evaluating '_react2.PropTypes.func')" #10

Open
profiVideos opened this issue Jan 4, 2018 · 3 comments

Comments

@profiVideos
Copy link

Hi, just tried installing this on RN 0.50 and could not get it to work. Complained about polyfills or something like that. This seems to be a common issue - tried a few others before giving this one a try. Always save the best for last - or so I thought. :-)

Any ideas on how to fix?

Exact error message is "undefined is not an object (evaluating '_react2.PropTypes.func')"

Thanks in advance.
Cheers, Markus

@profiVideos profiVideos changed the title Installation was ok, however once I tried to use the emoji-picker I got an error message on the Android simulator Installation was ok, but got "undefined is not an object (evaluating '_react2.PropTypes.func')" Jan 4, 2018
@profiVideos
Copy link
Author

Update. Did some reading and it seems that in react-native build 0.45.1 they removed ProcTypes from the core React module (vsersion 16.0.0) which is what I have installed. Here's a link to that issue. facebook/react-native#14588

On a whim I tried installing the ProcTypes module (I wasn't really expecting it to work) and that brought a new error message - "Requiring module "623", which threw an exception: TypeError: undefined is not an object (evaluating '_react2.PropTypes.func')

Not sure what to try next ... :-)

Cheers, Markus

@chinmoyeedash
Copy link

You need to add this line
Import PropTypes from 'prop-types'
and remove PropTypes import from React

@GioLogist
Copy link

Is this being maintained?

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