react-native-i18n模块与Expo链接 [英] react-native-i18n module linking with expo

查看:104
本文介绍了react-native-i18n模块与Expo链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Create-React-Native-App构建应用程序.因此,我的测试和开发是在Expo中进行的.我正在寻找一种解决方案来帮助i18n,主要是翻译和RTL.我发现ex-react-native-i18n可以很好地工作,直到我尝试弹出创建App之前,因为它需要博览会. (我在生产应用中不需要或不需要)

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)

react-native-i18n一起出现此错误: react-native-i18n module is not correctly linked

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

我尝试了react-native linkyarn link,但没有成功. react-native-i18n的自述文件"页面包含有关手动链接的详尽说明,但仅适用于弹出后.

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?

谢谢.

推荐答案

我认为不可能在弹出之前使该模块正常工作.

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

您尝试过这个图书馆吗? https://github.com/xcarpentier/ex-react-native-i18n

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

标记

这篇关于react-native-i18n模块与Expo链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆