Description
This is only a development annoyance, but I think it's worth raising that fast refresh breaks the Rive animations:
ERROR [Error: Cannot get hybrid property `HybridViewModelInstanceSpec.instanceName` - `this`'s `NativeState` is `null`, did you accidentally call `dispose()` on this object?]
ERROR [Error: Should not already be working.]
Provide a Repro
https://github.com/Nezz/expo-repro/tree/repro/RiveTransform
Repro steps:
bun android or bun ios
- Add a line break to
RiveBorderButton
Source .riv/.rev file
Included in the repo
Expected behavior
Fast refresh should not break the app. Sometimes only animations break, other times the app has to be fully reloaded.
Screenshots
Device & Versions (please complete the following information)
- Device: Samsung Galaxy Fold 3, API 36 emulator, iOS simulator
- OS: Android 15, iOS 26.4
- React Native Version: 0.83.4
- Expo Version (if applicable): 55
Additional context
Description
This is only a development annoyance, but I think it's worth raising that fast refresh breaks the Rive animations:
Provide a Repro
https://github.com/Nezz/expo-repro/tree/repro/RiveTransform
Repro steps:
bun androidorbun iosRiveBorderButtonSource
.riv/.revfileIncluded in the repo
Expected behavior
Fast refresh should not break the app. Sometimes only animations break, other times the app has to be fully reloaded.
Screenshots
Device & Versions (please complete the following information)
Additional context