react-native-i18n module linking with expo

ε祈祈猫儿з 提交于 2019-12-24 08:57:45

问题


I am building an app using Create-React-Native-App. As such, my testing and development is in Expo. I am looking for a solution to help with i18n, mostly translations and RTL. I found that ex-react-native-i18n works great, until I try ejecting to create the App, because it needs expo. (Which I don't need or want in the production App)

with react-native-i18n I get this error: react-native-i18n module is not correctly linked

I tried react-native link and yarn link without success. The ReadMe page for react-native-i18n has extensive instructions for manual linking, but only for AFTER ejecting.

What am I missing here? Is there a better solution that I'm missing?

Thanks.


回答1:


I don't think it will be possible to get that module working before ejecting.

Have you tried this library? https://github.com/xcarpentier/ex-react-native-i18n

Mark



来源:https://stackoverflow.com/questions/50508094/react-native-i18n-module-linking-with-expo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!