Skip to content

chore: bump rive-ios to 6.18.0 and rive-android to 11.3.1#192

Closed
mfazekas wants to merge 6 commits intomainfrom
chore/bump-native-sdks
Closed

chore: bump rive-ios to 6.18.0 and rive-android to 11.3.1#192
mfazekas wants to merge 6 commits intomainfrom
chore/bump-native-sdks

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

Bumps both native Rive SDKs to their latest versions:

  • rive-ios: 6.17.0 → 6.18.0
  • rive-android: 11.2.1 → 11.3.1

…patibility

Add async equivalents for all sync ViewModel/RiveFile methods (createInstanceByNameAsync,
getValueAsync, viewModelByNameAsync, etc.) and mark legacy sync methods as @deprecated.
Native implementations wrap sync calls in Promise.async on both iOS and Android.
Initial value is no longer read synchronously from property.value.
Instead the hook always starts as undefined and receives the current
value through the listener's first emission. This unifies the startup
shape across legacy (sync emit) and experimental (async valueStream)
backends, so consumers always handle the loading state.

The setter callback now uses React state for updater functions instead
of reading property.value synchronously.
Legacy addListener does NOT emit on subscribe — only on changes.
Without this, hooks stayed undefined forever if the value never changed.
Now the effect reads property.value synchronously when subscribing,
then the listener handles subsequent updates.
@mfazekas
Copy link
Copy Markdown
Collaborator Author

Superseded by #193

@mfazekas mfazekas closed this Mar 26, 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.

1 participant