You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native 0.81.5新架构下react-native-reanimated兼容版本咨询

适配React Native 0.81.5 + 新架构的react-native-reanimated版本

针对React Native 0.81.5(搭配Expo SDK54)开启新架构的场景,推荐使用react-native-reanimated@3.10.0 至 3.13.x区间的版本。

原因:

React Native 0.81.x的新架构调整了ShadowNode相关API,ShadowNode::Shared被标记为弃用;而你当前使用的react-native-reanimated@3.16.7已适配更高版本RN(如0.82+)的新架构API,因此在RN0.81.5环境下会出现API不兼容报错(如找不到parentShadowView)。3.10.0是reanimated正式适配RN0.81.x新架构的起始版本,3.13.x及之前的版本仍兼容RN0.81.5的新架构规范。

操作步骤:

  • 卸载当前版本:
npm uninstall react-native-reanimated
# 或 yarn remove react-native-reanimated
  • 安装兼容版本(以3.13.0为例):
npm install react-native-reanimated@3.13.0
# 或 yarn add react-native-reanimated@3.13.0
  • 重新执行EAS构建:
eas build

内容的提问来源于stack exchange,提问作者Tanushree

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.10 00:03:08