digitalartlab / expo-plugin-localization

Native language switching in your Expo app
https://www.npmjs.com/package/@digitalartlab/expo-plugin-localization
GNU Lesser General Public License v3.0
14 stars 0 forks source link

Cannot read property 'split' of undefined (getLocales) #26

Open lennertderyck opened 5 days ago

lennertderyck commented 5 days ago

I installed the package through the Expo CLI, added the needed plugin config and tried to use the getLocales() method but got the following error message:

# index.js (4:40)
Error: Cannot find native module 'ExpoPluginLocalization', js engine: hermes

Am i doing something wrong? I tried running it with Expo Go, and as a local build.

ThijmenDeValk commented 3 days ago

Hi @lennertderyck! That's weird indeed. The plugin doesn't work with Expo Go, but the local build should've done the trick. Can you share a repo with a fresh install of Expo and this plugin, so I can take a peek at what's going wrong? Otherwise I'm stuck at "works on my machine", and that's not helpful for you :)