Skip to content

Commit

Permalink
fix: Use mainthread for RNSentry
Browse files Browse the repository at this point in the history
Fixes #259
  • Loading branch information
HazAT committed Oct 13, 2017
1 parent ca77330 commit 2d10aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions ios/RNSentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
#else
#import "RCTBridge.h"
#endif
#if __has_include(<React/RCTExceptionsManager.h>)
#import <React/RCTExceptionsManager.h>
#else
#import "RCTExceptionsManager.h"
#endif
#if __has_include(<React/RCTRootView.h>)
#import <React/RCTRootView.h>
#else
#import "RCTRootView.h"
#endif

@interface RNSentry : NSObject <RCTBridgeModule, RCTExceptionsManagerDelegate>
@interface RNSentry : NSObject <RCTBridgeModule>

+ (void)installWithRootView:(RCTRootView *)rootView;
+ (void)installWithBridge:(RCTBridge *)bridge;
Expand Down
4 changes: 4 additions & 0 deletions ios/RNSentryEventEmitter.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ @implementation RNSentryEventEmitter
};
}

+ (BOOL)requiresMainQueueSetup {
return YES;
}

- (NSArray<NSString *> *)supportedEvents {
return @[kEventSentSuccessfully, kEventStored, kModuleTable];
}
Expand Down

0 comments on commit 2d10aaa

Please sign in to comment.