react-native-i18n
react-native-i18n copied to clipboard
react-native-i18n module is not correctly linked
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
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
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