File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1717@interface RNSentry : NSObject <RCTBridgeModule, RCTExceptionsManagerDelegate>
1818
1919+ (void )installWithRootView : (RCTRootView *)rootView ;
20+ + (void )installWithBridge : (RCTBridge *)bridge ;
2021
2122@end
Original file line number Diff line number Diff line change @@ -16,9 +16,13 @@ - (dispatch_queue_t)methodQueue
1616 return dispatch_get_main_queue ();
1717}
1818
19+ + (void )installWithBridge : (RCTBridge *)bridge {
20+ RNSentry *sentry = [bridge moduleForName: @" RNSentry" ];
21+ [[bridge moduleForName: @" ExceptionsManager" ] initWithDelegate: sentry];
22+ }
23+
1924+ (void )installWithRootView : (RCTRootView *)rootView {
20- RNSentry *sentry = [rootView.bridge moduleForName: @" RNSentry" ];
21- [[rootView.bridge moduleForName: @" ExceptionsManager" ] initWithDelegate: sentry];
25+ [RNSentry installWithBridge: rootView.bridge];
2226}
2327
2428+ (NSNumberFormatter *)numberFormatter {
You can’t perform that action at this time.
0 commit comments