Skip to content

Commit

Permalink
Fix missing bridge on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
clayton-halim authored Sep 24, 2020
2 parents b57574f + ea12009 commit c8dfcab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ios/RNTaplyticsReact.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@

@implementation RNTaplyticsReact

@synthesize bridge = _bridge;
+ (id)allocWithZone:(NSZone *)zone {
static RNTaplyticsReact *sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [super allocWithZone:zone];
});
return sharedInstance;
}

- (dispatch_queue_t)methodQueue
{
Expand Down

0 comments on commit c8dfcab

Please sign in to comment.