unstale

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

@unstale/cli 0.2.0 on npm

@rive-app/react-canvas 415 changes

Breaking changes 1

  • When enableGPUCanvas is enabled, the React-side default for useOffscreenRenderer changes to false.

    4.34.0release notes

Deprecations 4

  • The animations parameter inherits its deprecation from the JS runtime.

    4.33.0release notes

  • The automaticallyHandleEvents parameter inherits its deprecation from the JS runtime.

    4.33.0release notes

  • The stateMachines parameter inherits its deprecation from the JS runtime.

    4.33.0release notes

  • The useStateMachineInput hook is deprecated.

    4.33.0release notes

New APIs and options 7

  • Adds the enableInkbleed parameter from the JS runtime.

    4.37.0release notes

  • Adds support for directional focus navigation.

    4.36.0release notes

  • Adds early support for key inputs.

    4.36.0release notes

  • Adds early support for text inputs.

    4.36.0release notes

  • 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.

    4.34.0release notes

  • The Rive component gains a stateMachine parameter.

    4.33.0release notes

  • Adds a hook for font databound properties.

    4.31.0release notes

Behavior and default changes 1

  • If explicitly set to true, useOffscreenRenderer prevents GPU Canvas content from rendering, even when enableGPUCanvas is enabled.

    4.34.0release notes

Fixes and other changes 2

  • Fixes the canvas getting a 0x0 size when using React strict mode.

    4.34.2release notes

  • The canvas backing store is released on unmount.

    4.34.1release notes