Integrate Instalog into your React Native applications
initialize
callisCrashEnabled
is set to trueMethod | Description |
---|---|
initialize(apiKey, options) | Initializes the Instalog SDK with API key and options |
identifyUser(userId) | Sets the user ID for tracking |
log(event, properties) | Logs an event with optional properties |
sendCrash(name, report) | Manually sends a crash report |
showFeedbackModal() | Shows the feedback collection UI |
simulateCrash() | Simulates a crash for testing |
formatErrorReport(error, errorInfo) | Formats an error into a structured report |
ErrorBoundary | React component to catch and report rendering errors |
Option | Type | Default | Description |
---|---|---|---|
isCrashEnabled | boolean | false | Enable crash reporting |
isFeedbackEnabled | boolean | false | Enable user feedback collection |
isLogEnabled | boolean | false | Enable event logging |
isLoggerEnabled | boolean | false | Enable console logging |
autoCaptureCrashes | boolean | false | Automatically capture unhandled JS errors |
errorGrouping | object | See above | Configuration for error grouping behavior |