Commit c9605cd6 authored by Artal Druk's avatar Artal Druk

Revert "Fix unrecognized selector crash on UNNotification cast"

This reverts commit 0c21b4bd.
parent 950aca1c
...@@ -247,11 +247,9 @@ RCT_EXPORT_MODULE() ...@@ -247,11 +247,9 @@ RCT_EXPORT_MODULE()
NSMutableDictionary* info = [[NSMutableDictionary alloc] initWithDictionary:@{ @"identifier": identifier, @"completionKey": completionKey }]; NSMutableDictionary* info = [[NSMutableDictionary alloc] initWithDictionary:@{ @"identifier": identifier, @"completionKey": completionKey }];
// add text // add text
if ([response isKindOfClass:[UNTextInputNotificationResponse class]]) { NSString* text = ((UNTextInputNotificationResponse*)response).userText;//[response objectForKey:UIUserNotificationActionResponseTypedTextKey];
NSString* text = ((UNTextInputNotificationResponse*)response).userText; if (text != NULL) {
if (text != NULL) { info[@"text"] = text;
info[@"text"] = text;
}
} }
NSDictionary* userInfo = response.notification.request.content.userInfo; NSDictionary* userInfo = response.notification.request.content.userInfo;
......
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