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

Cannot read property 'func' of undefined #4

Open
icastillejogomez opened this issue Dec 18, 2018 · 4 comments
Open

Cannot read property 'func' of undefined #4

icastillejogomez opened this issue Dec 18, 2018 · 4 comments

Comments

@icastillejogomez
Copy link

In React Native 16 when I import the module this error appears in my console:

Cannot read property 'func' of undefined

Maybe propTypes?

@taherelsheikh
Copy link

I also have the same problem

@taherelsheikh
Copy link

@icastillejogomez - Any luck on your side?

@taherelsheikh
Copy link

Hey @icastillejogomez - I fixed the BUG.
propTypes is deprecated which is what's causing the issue. You were right
Here is what I did

  • You have to go the index.js file and change to the first line to ONLY import React from 'react';
  • Download the prop-types package https://www.npmjs.com/package/prop-types
  • then add to index.js this import PropTypes from "prop-types";

@icastillejogomez
Copy link
Author

@taherelsheikh sorry for the big delay. I made my own emoji picker render emojis from emoji-datasource by images. Also have render performan issues. In the next weeks I'll try the module if you say me that runs well. Do you have any performance issues? Can you send any picker screenshot? Thank you so much for post the solution! (L)

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