Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions RNNotificationActions/RNNotificationActions.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ - (UIMutableUserNotificationAction *)actionFromJSON:(NSDictionary *)opts
UIMutableUserNotificationAction *action;
action = [[UIMutableUserNotificationAction alloc] init];
[action setActivationMode: [RCTConvert UIUserNotificationActivationMode:opts[@"activationMode"]]];
[action setBehavior: [RCTConvert UIUserNotificationActionBehavior:opts[@"behavior"]]];

if ([action respondsToSelector:@selector(setBehavior:)]) {
[action setBehavior: [RCTConvert UIUserNotificationActionBehavior:opts[@"behavior"]]];
}
[action setTitle:opts[@"title"]];
[action setIdentifier:opts[@"identifier"]];
[action setDestructive:[RCTConvert BOOL:opts[@"destructive"]]];
Expand Down Expand Up @@ -169,4 +172,4 @@ - (void)handleNotificationActionReceived:(NSNotification *)notification
body:notification.userInfo];
}

@end
@end
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -206,7 +206,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down