mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-11 08:13:28 +08:00
Revert "Fix unrecognized selector crash on UNNotification cast"
This reverts commit 0c21b4bda1.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user