1// Copyright 2018-present 650 Industries. All rights reserved.
2
3#import <ExpoModulesCore/EXUtilities.h>
4#import <ExpoModulesCore/EXReactNativeUserNotificationCenterProxy.h>
5
6@implementation EXReactNativeUserNotificationCenterProxy
7
8EX_REGISTER_MODULE();
9
10+ (const NSArray<Protocol *> *)exportedInterfaces
11{
12  return @[@protocol(EXUserNotificationCenterProxyInterface)];
13}
14
15- (void)getNotificationSettingsWithCompletionHandler:(void(^)(UNNotificationSettings *settings))completionHandler
16{
17  [[UNUserNotificationCenter currentNotificationCenter] getNotificationSettingsWithCompletionHandler:completionHandler];
18}
19
20- (void)requestAuthorizationWithOptions:(UNAuthorizationOptions)options completionHandler:(void (^)(BOOL granted, NSError *__nullable error))completionHandler
21{
22  [[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:options completionHandler:completionHandler];
23}
24
25@end
26