-
0 votesanswersviews
无法使用NPM安装React-Intl
我无法安装react-intl.It一直在抛出错误 ├──UNMETPEER DEPENDENCYreact@0.13.3└──reaction-intl@2.1.3npm WARN react-dom@15.3.0需要一个react @^15.3.0的同行,但没有安装 . npm WARN react-intl@2.1.3要求对方为react@^0.14.0 || ^ 15.0.0-0但没有... -
0 votesanswersviews
使用enyzme浅和反应intl进行测试与原生反应
我一直试图使用酶浅渲染来模拟onPress . 但是由于react-intl,我无法访问TouchableOpacity 我已经看到了将intl注入反应组件的辅助函数,但这些函数似乎只适用于React而不是反应本机 . it("should handle button presses", () => { const onPress = sinon.spy(); c... -
2 votesanswersviews
如何使用React,React Intl和Redux转换(i18n)错误消息?
我有一个 performLogin 操作,它会触发API并尝试使用提供的凭据对用户进行身份验证 . 此API调用可能导致错误 . 她是我的行动: export const performLogin = (email: string, password: string) => { return (dispatch) => { UsersAPI.login(emai...