AlexanderZaytsev / react-native-i18n

React Native + i18n.js
MIT License
2.18k stars 492 forks source link

react-native-i18n module is not correctly linked #239

Open mreorhan opened 5 years ago

mreorhan commented 5 years ago

Im using "react-native-i18n": "^2.0.15" with Expo.

Full message like this:

[01:51:43] react-native-i18n module is not correctly linked

  • node_modules\expo\build\environment\logging.js:25:23 in warn
  • node_modules\react-native-i18n\index.js:11:15 in
  • node_modules\metro\src\lib\polyfills\require.js:292:12 in loadModuleImplementation
  • locales\i18n.js:2:0 in
  • node_modules\metro\src\lib\polyfills\require.js:292:12 in loadModuleImplementation
  • components\Utils\DatePicker.js:3:0 in
  • node_modules\metro\src\lib\polyfills\require.js:292:12 in loadModuleImplementation
  • components\Dashboard\dashboard.js:6:0 in
zoontek commented 5 years ago

You can't use this module with Expo (except with Expokit) You have https://docs.expo.io/versions/latest/sdk/localization/ to get the device current locale

kriskate commented 5 years ago

I recently upgraded to react-native-i18n v10.1.2 and am having a similar issue.

You can still use with expo, but only v9.x.x