We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ccbe2 commit dcb4f0aCopy full SHA for dcb4f0a
packages/react-native-sdk/src/hooks/useTrackDimensions.ts
@@ -5,8 +5,6 @@ import {
5
import { useEffect, useState } from 'react';
6
import { NativeEventEmitter, NativeModules } from 'react-native';
7
8
-const webRTCEventEmitter = new NativeEventEmitter(NativeModules.WebRTCModule);
9
-
10
/**
11
* This is a utility hook to get the dimensions of the video track of the participant.
12
* Note: the `tracktype` is used only for local participants.
@@ -67,6 +65,9 @@ export function useTrackDimensions(
67
65
};
68
66
});
69
+ const webRTCEventEmitter = new NativeEventEmitter(
+ NativeModules.WebRTCModule,
70
+ );
71
const subscription = webRTCEventEmitter.addListener(
72
'videoTrackDimensionChanged',
73
handleVideoTrackDimensionChanged,
0 commit comments