Revert "Fix unrecognized selector crash on UNNotification cast"

This reverts commit 0c21b4bda1.
This commit is contained in:
Artal Druk
2019-05-02 15:28:08 +03:00
parent 950aca1c7c
commit c9605cd66f

View File

@@ -247,11 +247,9 @@ RCT_EXPORT_MODULE()
NSMutableDictionary* info = [[NSMutableDictionary alloc] initWithDictionary:@{ @"identifier": identifier, @"completionKey": completionKey }];
// add text
if ([response isKindOfClass:[UNTextInputNotificationResponse class]]) {
NSString* text = ((UNTextInputNotificationResponse*)response).userText;
if (text != NULL) {
info[@"text"] = text;
}
NSString* text = ((UNTextInputNotificationResponse*)response).userText;//[response objectForKey:UIUserNotificationActionResponseTypedTextKey];
if (text != NULL) {
info[@"text"] = text;
}
NSDictionary* userInfo = response.notification.request.content.userInfo;