【问题标题】:the react-native-reanimated is not workingreact-native-reanimated 不起作用
【发布时间】:2021-11-05 23:17:59
【问题描述】:

我有一个使用 react-native-reanimated 编写的代码,但现在由于 react-native-reanimated 版本它无法正常工作,所以我该怎么办,我必须去安装 react-native-reanimated@2.3.0-alpha。 2 但我没有成功。请哪位大神解决或者有简单的安装方法

when i install it gives me this :

:and when i remove it like then

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: android reactjs react-native react-native-reanimated


【解决方案1】:

我想你正在使用 react native v0.65。因此,您只能使用reanimated v2.3.0alpha3。之后关闭你的 Metro 打包器,然后使用 npm run android 重建项目

【讨论】:

  • 感谢您的回答,我尝试过,但没有成功。对于真正的 idk,如果它不起作用,因为重新激活了 v2.3.0alpha3。或者我以错误的方式安装它。但我试过了,它给出了同样的错误。
  • 您可能没有正确遵循说明
猜你喜欢
  • 2022-10-19
  • 1970-01-01
  • 2022-12-29
  • 2022-11-17
  • 2021-11-08
  • 2021-08-19
  • 2022-01-11
  • 2021-11-23
  • 2022-08-14
相关资源
最近更新 更多