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

react-native-i18n module is not correctly linked

Open mreorhan opened this issue 5 years ago • 2 comments

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

mreorhan avatar Feb 10 '19 23:02 mreorhan

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

zoontek avatar Feb 10 '19 23:02 zoontek

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

kriskate avatar Feb 19 '19 17:02 kriskate