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

求助:React Native Reanimated无法创建响应式动画的问题

React Native Reanimated 无法创建响应式动画,是否为库本身问题?

我无法在React Native Reanimated中实现响应式动画,已尝试多种方法,想确认这是否是React Native Reanimated本身存在的问题。有演示视频展示问题的具体表现。

复现步骤

  • 克隆仓库:执行 git clone https://github.com/Vimal1464/animated-custom-drawer
  • 执行依赖安装命令:npm install
  • iOS平台需额外操作:进入ios目录并执行 pod install(完整命令:cd ios && pod install)
  • 运行项目:npm run android 或 npm run ios

版本信息

  • Reanimated版本:3.10.0
  • React Native版本:0.74.0
  • 涉及平台:Android、iOS

已尝试方案

我曾使用react-native-responsive-screen库获取响应式数值,但动画仍不具备响应性。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.22 21:07:32