RiveView so your Rive graphics are accessible to screen readers. To learn what semantics are and how to add them to a graphic, see the Semantics editor documentation.
Overview
In the Rive Editor, you can add semantic meaning to certain elements of your graphic-roles such as button, checkbox, tab, image, list, dialog, and more. Alongside these roles, you can add associated labels, values, states, and actions. These settings vary per role. At runtime,RiveView reads those semantics from the running state machine and exposes them to VoiceOver, keeping them up to date as the state machine advances. On iOS this uses the Apple runtime’s semantics support.
Semantics must be defined in the editor to have any effect. If an element has no semantics, it is not exposed to screen readers, regardless of the mode you set. See Feature Support for which runtimes currently support semantics.
Availability
Semantics require@rive-app/react-native 0.5.0 or later.
On Android, the
semantics prop is accepted but has no effect yet.
Semantics modes
TheSemantics enum sets the screen reader integration mode for a RiveView:
For most apps, prefer
Semantics.Automatic. It keeps the accessibility tree in sync only while a screen reader is active, avoiding unnecessary work when it isn’t.
Usage
Set thesemantics prop on RiveView: