react-native-i18n icon indicating copy to clipboard operation
react-native-i18n copied to clipboard

Undefined is not an object (evaluating 'RNI18n.languages[0]')

Open mekaVR opened this issue 5 years ago • 6 comments

I init my project with Ignite but when launch my app with cli react-native run-ios the app not working and the errors message Undefined is not an object (evaluating 'RNI18n.languages[0]').

I tried: rm -rf node_modules yarn add react-native-i18n yarn start --reset-cache

But nothing work...

Sorry for my english

mekaVR avatar Aug 27 '18 21:08 mekaVR

@mekaVR You need to link the module, as explained in the documentation

zoontek avatar Sep 07 '18 07:09 zoontek

This is happening to me too. react-native link react-native-i18n didn't help. I'm using react native 0.56 and node v8.11.1.

dmsierra11 avatar Sep 12 '18 23:09 dmsierra11

@zoontek i link the module but doesn't work. I removed the module in my project for the moment. Thanks for your response .

mekaVR avatar Sep 13 '18 01:09 mekaVR

I got Same error and error was react-native-i18n version.So i tried a lot finally found the issue : npm install [email protected]

and its working fine now

sahgarima avatar Jan 02 '20 11:01 sahgarima

@sahgarima works also for me! This is strange but it helps.

hedza06 avatar Mar 08 '20 22:03 hedza06

my problem was:

Error:

TypeError: null is not an object (evaluating 'RNI18n.languages')

Solution:

yard add [email protected]

shay-e-ls avatar Dec 13 '22 16:12 shay-e-ls