Skip to content

feat: add properties enumeration to ViewModel and ViewModelInstance#248

Merged
mfazekas merged 2 commits into
feat/rive-ios-experimentalfrom
feat/viewmodel-properties
May 12, 2026
Merged

feat: add properties enumeration to ViewModel and ViewModelInstance#248
mfazekas merged 2 commits into
feat/rive-ios-experimentalfrom
feat/viewmodel-properties

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

@mfazekas mfazekas commented May 11, 2026

Adds `getPropertiesAsync()` to `ViewModel` and `ViewModelInstance` for the experimental backend (iOS + Android).

const vm = file.viewModelByName('Person');
const props = await vm.getPropertiesAsync();
// => [{ name: 'age', type: 'number' }, { name: 'name', type: 'string' }, ...]

New types: `ViewModelPropertyType` and `ViewModelPropertyInfo`.
Both platforms use the async rive SDK APIs (`File.getProperties(of:)` / `RiveFile.getViewModelProperties(name)`).

Mirrors the legacy backend PR #98.

Adds coverage-ios dependency and portal resolutions pointing to the local
react-native-harness fork (feat/native-ios-coverage branch).
@mfazekas mfazekas force-pushed the feat/viewmodel-properties branch 3 times, most recently from 7454171 to 567800e Compare May 11, 2026 09:05
Adds getPropertiesAsync() to ViewModel and ViewModelInstance for runtime
introspection. Returns ViewModelPropertyInfo[] with name and type for each
property.
@mfazekas mfazekas force-pushed the feat/viewmodel-properties branch from 567800e to 5013891 Compare May 11, 2026 09:26
@mfazekas mfazekas merged commit 771b5ac into feat/rive-ios-experimental May 12, 2026
11 checks passed
@mfazekas mfazekas deleted the feat/viewmodel-properties branch May 12, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant