Comments on: A Comprehensive Guide to React Native Localization https://phrase.com/blog/posts/react-native-i18n-with-expo-and-i18next-part-1/ Localization and translation software Fri, 15 Sep 2023 07:11:42 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Jonas https://phrase.com/blog/posts/react-native-i18n-with-expo-and-i18next-part-1/#comment-155 Mon, 15 Oct 2018 11:22:00 +0000 https://phraseapp.com/blog/?p=4624#comment-155 Hi there,
Thanks for this great tutorial!
I’m having a problem with jest, though: as soon as I import “/src/services/i18n/index.js” into any of my tests (or the components that I test), the test breaks with this message:
Invariant Violation: Native module cannot be null.
at invariant (node_modules/fbjs/lib/invariant.js:42:15)
at new NativeEventEmitter (node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js:1:2434)
at Object. (node_modules/expo/src/Location.js:1:432)
at Object. (node_modules/expo/src/Expo.js:1:381)
Have you run into this? Any idea of how to resolve it? Been googling without luck.
Thanks,
Jonas

]]>