RedBoxHandler

interface RedBoxHandler

Interface used by BridgeDevSupportManager to allow interception on any redboxes during development and handling the information from the redbox. The implementation should be passed by setRedBoxHandler in ReactInstanceManager.

Types

Link copied to clipboard

Callback interface for .reportRedbox.

Functions

Link copied to clipboard
abstract fun handleRedbox(title: String?, stack: Array<StackFrame>, errorType: ErrorType)

Handle the information from the redbox.

Link copied to clipboard
abstract fun isReportEnabled(): Boolean

Whether the report feature is enabled.

Link copied to clipboard
abstract fun reportRedbox(context: Context, title: String, stack: Array<StackFrame>, sourceUrl: String, reportCompletedListener: RedBoxHandler.ReportCompletedListener)

Report the information from the redbox and set up a callback listener.