mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-18 21:35:21 +01:00
wip
This commit is contained in:
parent
51c0a09e15
commit
95de8d56f5
@ -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;
|
||||
}
|
||||
|
||||
|
@ -22,5 +22,6 @@
|
||||
- (void)addWalletMenuAction;
|
||||
- (void)importWalletMenuAction;
|
||||
- (void)reloadTransactionsMenuAction;
|
||||
- (NSArray<NSString *> *)supportedEvents;
|
||||
|
||||
@end
|
||||
@end
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
@ -58,4 +59,4 @@ RCT_EXPORT_MODULE();
|
||||
[self sendEventWithName:@"reloadTransactionsMenuAction" body:nil];
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
Loading…
Reference in New Issue
Block a user