RCTConvert+RNNotifications.h 739 Bytes
Newer Older
Lion's avatar
Lion committed
1
#import <React/RCTConvert.h>
yogevbd's avatar
WIP  
yogevbd committed
2 3 4 5 6 7
@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
@end

@interface RCTConvert (UNNotificationRequest)
yogevbd's avatar
yogevbd committed
13
+ (UNNotificationRequest *)UNNotificationRequest:(id)json withId:(NSNumber*)notificationId;
yogevbd's avatar
WIP  
yogevbd committed
14
@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