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()
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;
......
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