Commit 7035c08f authored by Libin Lu's avatar Libin Lu Committed by GitHub

support old RN version

parent b03b51ac
......@@ -313,7 +313,9 @@ RCT_EXPORT_MODULE();
}
-(void) addListener:(NSString *)eventName {
if([super respondsToSelector:@selector(addListener:)]){
[super addListener:eventName];
}
if([eventName isEqualToString:FCMNotificationReceived] && initialNotificationActionResponse) {
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived object:self userInfo:[initialNotificationActionResponse copy]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment