Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Migrate the iOS new runtime off the data-binding APIs deprecated in rive-ios 6.28.0

Đã đóng
#403 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@mfazekas đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #423 của @mfazekas — đang mở

Đá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
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react-native, swift
Lĩnh vực
mobile

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ả

enhancement iOS

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:

  • DataBind and Rive(file:artboard:stateMachine:dataBind:fit:) → pass explicitly bound components to Rive(file:artboard:stateMachine:)
  • StateMachine.bindViewModelInstance(_:) → try await stateMachine.bindViewModelInstances(main:globals:), which is async
  • Rive.viewModelInstance → create and retain the instance ourselves

Things the migration has to handle:

  1. dataBind auto and by-name must create the authored default instance explicitly, since getViewModelInstance() can no longer read it from Rive.
  2. Rebinding becomes async, which affects the dataBind-only change path and pendingBindInstance.
  3. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rive-app/rive-nitro-react-native

Tất cả issue của rive-app/rive-nitro-react-native

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.