Skip to content

Commit e63e08e

Browse files
committed
revert install changes
1 parent e7909ad commit e63e08e

File tree

3 files changed

+323
-301
lines changed

3 files changed

+323
-301
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { StreamRNVideoSDKGlobals } from '@stream-io/video-client';
2+
import { callManager } from '../../modules/call-manager';
3+
4+
declare global {
5+
var streamRNVideoSDK: StreamRNVideoSDKGlobals | undefined;
6+
}
7+
8+
const streamRNVideoSDKGlobals: StreamRNVideoSDKGlobals = {
9+
callManager: {
10+
setup: () => {
11+
callManager.setup();
12+
},
13+
start: () => {
14+
callManager.start();
15+
},
16+
stop: () => {
17+
callManager.stop();
18+
},
19+
},
20+
};
21+
22+
export function registerSDKGlobals() {
23+
if (!global.streamRNVideoSDK) {
24+
global.streamRNVideoSDK = streamRNVideoSDKGlobals;
25+
}
26+
}

0 commit comments

Comments
 (0)