Migrate the iOS new runtime off the data-binding APIs deprecated in rive-ios 6.28.0
维护者通常 1 天内回复
评估
调研方向
Start with ios/new/RiveReactNativeView.swift and the rive-ios 6.28.0 release notes; trace the current DataBind, viewModelInstance, bindViewModelInstance, and pendingBindInstance paths. Done means the deprecated APIs are no longer used, authored default instances and async rebinding still work for auto and by-name data binding, and the harness passes on both runtimes.
由索引模型根据 Issue 内容生成。
描述
rive-ios 6.28.0 (release notes) deprecates the concurrency data-binding API that ios/new/RiveReactNativeView.swift is built on. Everything still works on 6.28.0 (bumped in #401; the harness passes on both runtimes, warnings only), but these are slated for removal in a future release:
DataBindandRive(file:artboard:stateMachine:dataBind:fit:)→ pass explicitly bound components toRive(file:artboard:stateMachine:)StateMachine.bindViewModelInstance(_:)→try await stateMachine.bindViewModelInstances(main:globals:), which is asyncRive.viewModelInstance→ create and retain the instance ourselves
Things the migration has to handle:
dataBindauto and by-name must create the authored default instance explicitly, sincegetViewModelInstance()can no longer read it fromRive.- Rebinding becomes async, which affects the dataBind-only change path and
pendingBindInstance. - Views now redraw automatically when bound instances change.
6.28.0 also adds global view models, font binding and blob binding, which we could expose once this is done.
- 主要语言
- TypeScript
- 星标
- 157
- 派生
- 17
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 20
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rive-app/rive-nitro-react-native 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
rive-app/rive-nitro-react-native#424 · 1 条评论 ·
维护者通常 1 天内回复
-
[Android] Fit.Layout content stale after resize on the new backend (surface keeps creation size)可能已有人在做 @mfazekas 于 7 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
rive-app/rive-nitro-react-native#418 ·
维护者通常 1 天内回复
-
Rive drains battery in the background on Android可能已有人在做 @mfazekas 于 9 天前认领。 未关闭android bug
难度 4/5 3-5 天 新手友好度 48/100
rive-app/rive-nitro-react-native#413 ·
维护者通常 1 天内回复
-
[Android] RiveFonts: loadFont({name}) fails for script fonts on OEM fonts.xml; systemFallback() is not script-aware (tofu for Thai/Hebrew/Arabic/CJK)可能已有人在做 @mfazekas 于 17 天前认领。 未关闭android bug
难度 3/5 1-2 天 新手友好度 65/100
rive-app/rive-nitro-react-native#369 · 3 条评论 ·
维护者通常 1 天内回复
-
enhancement iOS
难度 4/5 3-5 天 新手友好度 35/100
rive-app/rive-nitro-react-native#58 · 7 条评论 ·
维护者通常 1 天内回复
查看 rive-app/rive-nitro-react-native 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
melgarafael/DeskcommCRM#3104 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug service: webapp
难度 2/5 1-3 小时 新手友好度 82/100
Ocelot-Social-Community/Ocelot-Social#10684 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nicobailon/pi-subagents#2978 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
getsentry/sentry-conventions#732 · 1 条评论 ·
维护者通常 1 天内回复