@poolse/react-native 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -209,6 +209,7 @@ function usePoolseTheme() {
|
|
|
209
209
|
function CallVideoGrid({ participants, livekitReactNative, labelFor }) {
|
|
210
210
|
const theme = usePoolseTheme();
|
|
211
211
|
const label = labelFor ?? ((id) => `User ${id.slice(0, 6)}`);
|
|
212
|
+
const VideoTrack = livekitReactNative?.VideoTrack;
|
|
212
213
|
if (participants.length === 0) return null;
|
|
213
214
|
const columns = participants.length <= 1 ? 1 : 2;
|
|
214
215
|
const basis = columns === 1 ? "100%" : "48%";
|
|
@@ -226,8 +227,8 @@ function CallVideoGrid({ participants, livekitReactNative, labelFor }) {
|
|
|
226
227
|
}
|
|
227
228
|
],
|
|
228
229
|
children: [
|
|
229
|
-
participant.videoTrackRef &&
|
|
230
|
-
|
|
230
|
+
participant.videoTrackRef && VideoTrack ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
231
|
+
VideoTrack,
|
|
231
232
|
{
|
|
232
233
|
trackRef: participant.videoTrackRef,
|
|
233
234
|
style: styles.video,
|