|
@@ -28,7 +28,6 @@
|
28
|
28
|
#import <RNGoogleSignin/RNGoogleSignin.h>
|
29
|
29
|
#import <WebRTC/RTCLogging.h>
|
30
|
30
|
|
31
|
|
-
|
32
|
31
|
@implementation JitsiMeet {
|
33
|
32
|
RCTBridgeWrapper *_bridgeWrapper;
|
34
|
33
|
NSDictionary *_launchOptions;
|
|
@@ -50,7 +49,7 @@
|
50
|
49
|
|
51
|
50
|
- (instancetype)init {
|
52
|
51
|
if (self = [super init]) {
|
53
|
|
- // Initialize the on and only bridge for interfacing with React Native.
|
|
52
|
+ // Initialize the one and only bridge for interfacing with React Native.
|
54
|
53
|
_bridgeWrapper = [[RCTBridgeWrapper alloc] init];
|
55
|
54
|
|
56
|
55
|
// Initialize the listener for handling start/stop screensharing notifications.
|
|
@@ -119,6 +118,18 @@
|
119
|
118
|
|
120
|
119
|
#pragma mark - Utility methods
|
121
|
120
|
|
|
121
|
+- (void)instantiateReactNativeBridge {
|
|
122
|
+ if (_bridgeWrapper != nil) {
|
|
123
|
+ return;
|
|
124
|
+ };
|
|
125
|
+
|
|
126
|
+ _bridgeWrapper = [[RCTBridgeWrapper alloc] init];
|
|
127
|
+}
|
|
128
|
+
|
|
129
|
+- (void)destroyReactNativeBridge {
|
|
130
|
+ _bridgeWrapper = nil;
|
|
131
|
+}
|
|
132
|
+
|
122
|
133
|
- (JitsiMeetConferenceOptions *)getInitialConferenceOptions {
|
123
|
134
|
if (_launchOptions[UIApplicationLaunchOptionsURLKey]) {
|
124
|
135
|
NSURL *url = _launchOptions[UIApplicationLaunchOptionsURLKey];
|