This commit is contained in:
Marcos Rodriguez Velez 2024-11-07 23:29:26 -04:00
parent 51c0a09e15
commit 95de8d56f5
3 changed files with 11 additions and 5 deletions

View File

@ -18,7 +18,11 @@ RCT_EXPORT_MODULE();
return YES;
}
+ (EventEmitter *)sharedInstance {
+ (instancetype)sharedInstance {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [[self alloc] init];
});
return sharedInstance;
}

View File

@ -22,5 +22,6 @@
- (void)addWalletMenuAction;
- (void)importWalletMenuAction;
- (void)reloadTransactionsMenuAction;
- (NSArray<NSString *> *)supportedEvents;
@end

View File

@ -19,9 +19,10 @@ RCT_EXPORT_MODULE();
}
+ (instancetype)sharedInstance {
if (!sharedInstance) {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedInstance = [[self alloc] init];
}
});
return sharedInstance;
}