React-native-i18n: Undefined is not an object (evaluating 'RNI18n.languages[0]')

Created on 27 Aug 2018  路  5Comments  路  Source: AlexanderZaytsev/react-native-i18n

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

Most helpful comment

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

All 5 comments

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

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.

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

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 works also for me! This is strange but it helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edouardpagnier picture edouardpagnier  路  10Comments

xilonxiao picture xilonxiao  路  5Comments

tonygentilcore picture tonygentilcore  路  4Comments

SvetoslavSlavov picture SvetoslavSlavov  路  4Comments

AhsanAk picture AhsanAk  路  3Comments