Skip to content

Conversation

@mfazekas
Copy link
Collaborator

@mfazekas mfazekas commented Nov 18, 2025

Allow to update view model instance properties with:

<RiveView
            values={{
              'Button/State_1': "Let's go!",
            }}
          />

mfazekas and others added 2 commits November 18, 2025 15:47
Add a new `values` prop to RiveView that allows declarative setting of
ViewModel properties without manual ViewModelInstance creation.

Changes:
- Add `values?: Record<string, number | string | boolean>` to RiveViewProps
- Implement iOS applyValues() with Variant type handling
- Implement Android applyValues() with Variant type handling
- Simplify RiveDataBindingExample from 3 components to 1 component
- Auto-generate Variant_Bool_String_Double types via Nitrogen

Usage:
```tsx
<RiveView
  file={riveFile}
  values={{
    'Button/State_1': "Let's go!",
    'Score': 100,
    'IsActive': true,
  }}
/>
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@HayesGordon HayesGordon deleted the branch view-model-instance December 9, 2025 16:27
@HayesGordon HayesGordon closed this Dec 9, 2025
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.

3 participants