Skip to content

docs(react-native): update hook APIs for v0.4.0 breaking changes#588

Merged
lancesnider merged 2 commits intorive-app:mainfrom
mfazekas:docs/rn-v0.4-hook-api-changes
Apr 1, 2026
Merged

docs(react-native): update hook APIs for v0.4.0 breaking changes#588
lancesnider merged 2 commits intorive-app:mainfrom
mfazekas:docs/rn-v0.4-hook-api-changes

Conversation

@mfazekas
Copy link
Copy Markdown
Contributor

Update code examples and migration guide for v0.4.0 breaking changes from rive-app/rive-nitro-react-native#184:

  • useViewModelInstance returns { instance, error } instead of ViewModelInstance | null
  • useRiveFile error is now Error instead of string
  • Property hooks (useRiveNumber, etc.) start as undefined

@mfazekas mfazekas requested a review from a team as a code owner March 31, 2026 05:20
Update code examples and migration guide for useViewModelInstance
returning { instance, error }, useRiveFile error becoming Error object,
and property hooks starting as undefined.
@mfazekas mfazekas force-pushed the docs/rn-v0.4-hook-api-changes branch from 966fa98 to 53f6885 Compare March 31, 2026 05:22
@mfazekas
Copy link
Copy Markdown
Contributor Author

@HayesGordon pls review

HayesGordon
HayesGordon previously approved these changes Mar 31, 2026
Copy link
Copy Markdown
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lancesnider lancesnider merged commit a5a7570 into rive-app:main Apr 1, 2026
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