Skip to content

Fast refresh breaks Rive #205

@Nezz

Description

@Nezz

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:

  1. bun android or bun ios
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions