Skip to content

Commit 1440d6a

Browse files
committed
bug fix: objective-c syntax
1 parent b1d37d8 commit 1440d6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ios/RNVoipPushNotification/RNVoipPushNotificationManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@interface RNVoipPushNotificationManager : NSObject <RCTBridgeModule>
1414

1515
- (void)voipRegistration;
16-
- (void)registerUserNotification;
16+
- (void)registerUserNotification:(NSDictionary *)permissions;
1717
- (NSDictionary *)checkPermissions;
1818
+ (void)didUpdatePushCredentials:(PKPushCredentials *)credentials forType:(NSString *)type;
1919
+ (void)didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(NSString *)type;

ios/RNVoipPushNotification/RNVoipPushNotificationManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ - (void)setBridge:(RCTBridge *)bridge
6464
object:nil];
6565
}
6666

67-
- (void)registerUserNotification(NSDictionary *)permissions
67+
- (void)registerUserNotification:(NSDictionary *)permissions
6868
{
6969
UIUserNotificationType types = UIUserNotificationTypeNone;
7070
if (permissions) {
@@ -156,7 +156,7 @@ - (void)handleRemoteNotificationReceived:(NSNotification *)notification
156156
body:notification.userInfo];
157157
}
158158

159-
RCT_EXPORT_METHOD(requestPermissions(NSDictionary *)permissions)
159+
RCT_EXPORT_METHOD(requestPermissions:(NSDictionary *)permissions)
160160
{
161161
if (RCTRunningInAppExtension()) {
162162
return;

0 commit comments

Comments
 (0)