npm / @rive-app/react-canvas
@rive-app/react-canvas
What changed in @rive-app/react-canvas 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 breaking4 deprecations7 new APIs and options1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rive-app/react-canvas 415 changes
Breaking changes 1
When enableGPUCanvas is enabled, the React-side default for useOffscreenRenderer changes to false.
Deprecations 4
The animations parameter inherits its deprecation from the JS runtime.
The automaticallyHandleEvents parameter inherits its deprecation from the JS runtime.
The stateMachines parameter inherits its deprecation from the JS runtime.
The useStateMachineInput hook is deprecated.
New APIs and options 7
Adds the enableInkbleed parameter from the JS runtime.
Adds support for directional focus navigation.
Adds early support for key inputs.
Adds early support for text inputs.
Opt in to GPU Canvas rendering through useRiveFile, useRive, or <Rive /> in the @rive-app/react-webgl2 runtime. A supplied riveFile's rendering mode takes precedence.
The Rive component gains a stateMachine parameter.
Adds a hook for font databound properties.
Behavior and default changes 1
If explicitly set to true, useOffscreenRenderer prevents GPU Canvas content from rendering, even when enableGPUCanvas is enabled.
Fixes and other changes 2
Fixes the canvas getting a 0x0 size when using React strict mode.
The canvas backing store is released on unmount.