Issue with importingSee original GitHub issue
Once I add the line
import Emoji from 'react-native-emoji';
at the top of my file and reload the app on iOS, I start seeing an error:
Cannot read property ‘string’ of undefined
If I remove that import statement, the app builds and runs fine.
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
i met it. For quick resolve it, i installed it directly via github.
npm install react-native-emoji@https://github.com/jorilallo/react-native-emoji -S
Actually, this issue and issue #19 are related. The
index.js file in this repo is not the same as the one in the npm package. If you replace the contents of the one installed via npm with the contents of
index.js in this repo, it works fine. Please update the npm package.