Skip to content

Commit e0a055a

Browse files
refactor: replace RedBoxHelper with RCTExceptionsManager for error handling
1 parent b1f0793 commit e0a055a

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import Foundation
2+
import React
23

34
@objcMembers
45
public class NativeErrorHandler: NSObject {
56
public func handle(message: String, stackTrace: [[String: Any]]) {
6-
RedBoxHelper.shared.redBox.showErrorMessage(message, withStack: stackTrace)
7+
DevHelper.getModule(type: RCTExceptionsManager.self)?.reportFatalException(message, stack: stackTrace, exceptionId: -1)
78
}
89
}

ios/Modules/RCTRedBoxHelper/RCTRedBoxHelper.swift

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)