Skip to content

Commit 8e67743

Browse files
committed
Do not need to init RNCallKit in AppDelegate.m
1 parent 4ed5f55 commit 8e67743

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In `Xcode` -> `Build Phases` -> `Link Binary With Libraries`, add `CallKit.frame
5555
#import "RNCallKit.h"
5656
```
5757

58-
#### - Change the way you initialise React Root View
58+
#### - Change the way you initialise React Root View (required if <= 1.2.1)
5959

6060
Initialise **RNCallKit** first, since we need our custom `observer` of `NSNotificationCenter` to be started as soon as the app is initialising
6161

ios/RNCallKit/RNCallKit.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#import <AVFoundation/AVAudioSession.h>
1717

18-
static int const DelayInSeconds = 2;
18+
static int const DelayInSeconds = 3;
1919

2020
static NSString *const RNCallKitHandleStartCallNotification = @"RNCallKitHandleStartCallNotification";
2121
static NSString *const RNCallKitDidReceiveStartCallAction = @"RNCallKitDidReceiveStartCallAction";
@@ -31,7 +31,7 @@ @implementation RNCallKit
3131
}
3232

3333
// should initialise in AppDelegate.m
34-
//RCT_EXPORT_MODULE()
34+
RCT_EXPORT_MODULE()
3535

3636
- (instancetype)init
3737
{

0 commit comments

Comments
 (0)