Migrate the iOS new runtime off the data-binding APIs deprecated in rive-ios 6.28.0
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 157
- Fork
- 16
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rive-app/rive-nitro-react-native
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rive-app/rive-nitro-react-native#424 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Android] Fit.Layout content stale after resize on the new backend (surface keeps creation size)Có thể đã có người làm @mfazekas đã nhận 14 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
rive-app/rive-nitro-react-native#418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Rive drains battery in the background on AndroidCó thể đã có người làm @mfazekas đã nhận 16 ngày trước. Đang mởandroid bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
rive-app/rive-nitro-react-native#413 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Android] RiveFonts: loadFont({name}) fails for script fonts on OEM fonts.xml; systemFallback() is not script-aware (tofu for Thai/Hebrew/Arabic/CJK)Có thể đã có người làm @mfazekas đã nhận 24 ngày trước. Đang mởandroid bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
rive-app/rive-nitro-react-native#369 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement iOS
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rive-app/rive-nitro-react-native#58 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rive-app/rive-nitro-react-native
Issue tương tự
-
category::task code priority::normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
e0ipso/strikethroo#145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
cocos/cocos-docs#3333 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RevenueCat/react-native-purchases#2079 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RevenueCat/purchases-hybrid-common#2039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-reported area/react bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày