Animation artifacting
未关闭
还没有人认领这个 Issue。
Never gets stale
p: Expo
Partner
Type: New Architecture
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
There is severe artifacting on iOS when using rotation animations with the Animated api on the new architecture and bridgeless.
Steps to reproduce
In RNTester, navigate to apis -> Animated -> Transform Styles. Select either rotateX, rotateY or both and you will observe the behaviour.
React Native Version
0.74.0-rc6
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 14.3.1
CPU: (12) arm64 Apple M2 Pro
Memory: 138.63 MB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.11.1
path: ~/.nvm/versions/node/v20.11.1/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v20.11.1/bin/yarn
npm:
version: 10.2.4
path: ~/.nvm/versions/node/v20.11.1/bin/npm
Watchman:
version: 2024.01.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /Users/alanhughes/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK:
API Levels:
- "30"
- "32"
- "33"
- "34"
Build Tools:
- 26.0.3
- 28.0.3
- 30.0.2
- 30.0.3
- 31.0.0
- 33.0.0
- 33.0.1
- 33.0.2
- 34.0.0
System Images:
- android-33 | Google APIs ARM 64 v8a
- android-33 | Google Play ARM 64 v8a
- android-34 | ARM 64 v8a
- android-34 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11567975
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.8
path: /Users/alanhughes/.sdkman/candidates/java/current/bin/javac
Ruby:
version: 2.7.8
path: /Users/alanhughes/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
na
Reproducer
https://github.com/facebook/react-native/tree/main/packages/rn-tester
Screenshots and Videos
https://github.com/facebook/react-native/assets/30924086/13ab081f-3833-4b85-8654-2a308618e885
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在启用 new architecture 和 bridgeless mode 的 iOS 上打开 APIs → Animated → Transform Styles,在 packages/rn-tester 中重现该问题。测试 rotateX、rotateY 以及两者同时使用的情况,然后跟踪 Animated 的变换路径,以确定出现伪影的原因。当这些旋转动画能够在没有严重伪影的情况下渲染时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100