We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3261013 commit d7d8061Copy full SHA for d7d8061
ios/RCTJMessageModule/RCTJMessageModule.m
@@ -45,7 +45,8 @@ + (id)allocWithZone:(NSZone *)zone {
45
46
- (id)init {
47
self = [super init];
48
-
+ [self initNotifications];
49
+ self.SendMsgCallbackDic = @{}.mutableCopy;
50
return self;
51
}
52
@@ -55,6 +56,7 @@ - (void)setBridge:(RCTBridge *)bridge {
55
56
57
58
-(void)initNotifications {
59
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
60
61
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
62
// have
0 commit comments