RCTConvert+RNNotifications.h 733 Bytes
Newer Older
yogevbd's avatar
WIP  
yogevbd committed
1 2 3 4 5 6 7
#import "RCTConvert.h"
@import UserNotifications;

@interface RCTConvert (UIMutableUserNotificationAction)
+ (UIMutableUserNotificationAction *)UIMutableUserNotificationAction:(id)json;
@end

8 9
@interface RCTConvert (UNMutableUserNotificationCategory)
+ (UNNotificationCategory *)UNMutableUserNotificationCategory:(id)json;
yogevbd's avatar
WIP  
yogevbd committed
10 11 12 13 14
@end

@interface RCTConvert (UNNotificationRequest)
+ (UNNotificationRequest *)UNNotificationRequest:(id)json withId:(NSString*)notificationId;
@end
yogevbd's avatar
WIP  
yogevbd committed
15 16 17 18 19 20 21 22

@interface RCTConvert (UNNotification)
+ (NSDictionary *)UNNotificationPayload:(UNNotification *)notification;
@end

@interface RCTConvert (UNNotificationPresentationOptions)
+ (UNNotificationPresentationOptions)UNNotificationPresentationOptions:(id)json;
@end