Error Handling
This page only applies to the new
runtime - not the legacy
runtime.
View-Based Errors
Use theonError callback prop to handle errors during view configuration or runtime operations:
Error Types
The following error types may occur during view operations:
Use these error types to provide specific error handling:
If no
onError handler is provided, errors will be logged to the console by
default.Android Runtime Initialization
On Android, the Rive native library is automatically initialized at app startup. In rare cases (ABI mismatch, missing native libraries, etc.), this initialization can fail. UseRiveRuntime.getStatus() to check whether initialization succeeded:
On iOS, the runtime requires no explicit initialization —
getStatus() will always return { isInitialized: true }.