From 7035c08f075e50c6b6ff699ee4daad309d5d59c1 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Mon, 12 Feb 2018 15:53:00 -0500 Subject: [PATCH] support old RN version --- ios/RNFIRMessaging.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index 573f002..f65947f 100644 --- a/ios/RNFIRMessaging.m +++ b/ios/RNFIRMessaging.m @@ -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]]; -- 2.26.2