You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error('Artboard not found:', error.message);
174
+
// Handle missing artboard (e.g., use default artboard)
175
+
break;
176
+
caseRiveErrorType.IncorrectStateMachineName:
177
+
console.error('State machine not found:', error.message);
178
+
// Handle missing state machine
179
+
break;
180
+
caseRiveErrorType.MalformedFile:
181
+
console.error('Corrupted file:', error.message);
182
+
// Handle corrupted file (e.g., show error UI)
183
+
break;
184
+
default:
185
+
console.error('Rive error:', error.message);
186
+
}
187
+
}}
188
+
style={{ width:'100%', height:400 }}
189
+
/>;
190
+
```
191
+
192
+
> **Note**: If no `onError` handler is provided, errors will be logged to the console by default.
193
+
133
194
## Feature Support
134
195
135
196
This section provides a comprehensive overview of feature availability in `react-native-rive`, comparing it with the [previous Rive React Native runtime](https://github.com/rive-app/rive-react-native) and outlining the development roadmap.
0 commit comments