Closed stevenaanen closed 1 year ago
Apparently, imports referencing module itself like this https://github.com/TheWidlarzGroup/rn-emoji-keyboard/blob/master/src/contexts/KeyboardContext.tsx#L3 aren't working
Changing linked line from
import { en } from 'rn-emoji-keyboard'
to relative import fixes the problem:
import en from '../translation/en'
Thanks for reporting and providing a solution. It will be fixed in next release.
Describe the bug In our recently set up Expo app, we get a reference error as soon as the module is imported.
The error:
To Reproduce Import the module in a Expo app:
import EmojiPicker from "rn-emoji-keyboard"
Screenshots
In this case, I'm running through Expo Go in an iOS simulator. Tested also in an Android simulator and the result is the same.