@poolse/react-native 2.23.0 → 2.24.0
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/CHANGELOG.md +24 -0
- package/dist/index.cjs +179 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +180 -156
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to `@poolse/react-native` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
5
5
|
versions follow [semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [2.24.0] — 2026-10-14
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **The call UI finally respects Android's navigation bar.** A Modal
|
|
12
|
+
is its own Android window, and safe-area insets inherited from the
|
|
13
|
+
root provider are stale or zero inside it — so the dock, grid and
|
|
14
|
+
controls all sat under the system bar while every non-modal screen
|
|
15
|
+
behaved. CallScreen now mounts its own SafeAreaProvider inside the
|
|
16
|
+
Modal and measures insets there.
|
|
17
|
+
- CallScreen feeds `reportOthersOnCall` so EVERY hang-up path — not
|
|
18
|
+
just its own button — knows a group call must survive a leaver (see
|
|
19
|
+
@poolse/react 2.24.0).
|
|
20
|
+
|
|
21
|
+
## [2.23.1] — 2026-10-14
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **The 2x2 video grid's bottom row sat under Android's navigation
|
|
26
|
+
bar.** The filling grid spanned the whole edge-to-edge window; it
|
|
27
|
+
now pads by the safe area, so tiles never sit under system UI. The
|
|
28
|
+
auto-hiding call chrome may still float over a tile — tap to clear
|
|
29
|
+
it — but the OS bars never cover a face.
|
|
30
|
+
|
|
7
31
|
## [2.23.0] — 2026-10-14
|
|
8
32
|
|
|
9
33
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -5791,7 +5791,10 @@ function CallVideoGrid({
|
|
|
5791
5791
|
const others = react.useMemo(() => participants.filter((p) => !p.isSelf), [participants]);
|
|
5792
5792
|
const columns = others.length + 1 <= 6 ? 2 : 3;
|
|
5793
5793
|
const rows = Math.ceil((others.length + 1) / columns);
|
|
5794
|
-
const
|
|
5794
|
+
const padTop = safeArea?.top ?? 0;
|
|
5795
|
+
const padBottom = safeArea?.bottom ?? 0;
|
|
5796
|
+
const availableHeight = size.height > 0 ? size.height - padTop - padBottom : 0;
|
|
5797
|
+
const tileHeight = availableHeight > 0 ? (availableHeight - GAP * (rows - 1)) / rows : 0;
|
|
5795
5798
|
const scrolls = tileHeight > 0 && tileHeight < MIN_TILE_HEIGHT;
|
|
5796
5799
|
if (participants.length === 0) return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles30.stage, onLayout });
|
|
5797
5800
|
if (others.length <= 1) {
|
|
@@ -5839,17 +5842,24 @@ function CallVideoGrid({
|
|
|
5839
5842
|
},
|
|
5840
5843
|
participant.userId
|
|
5841
5844
|
)) });
|
|
5842
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5843
|
-
reactNative.
|
|
5845
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5846
|
+
reactNative.View,
|
|
5844
5847
|
{
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5848
|
+
style: [styles30.stage, { paddingTop: padTop, paddingBottom: padBottom }],
|
|
5849
|
+
onLayout,
|
|
5850
|
+
children: scrolls ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5851
|
+
reactNative.ScrollView,
|
|
5852
|
+
{
|
|
5853
|
+
contentContainerStyle: [
|
|
5854
|
+
styles30.scroll,
|
|
5855
|
+
{ paddingBottom: (chromeInsets?.bottom ?? 0) + GAP }
|
|
5856
|
+
],
|
|
5857
|
+
showsVerticalScrollIndicator: false,
|
|
5858
|
+
children: grid
|
|
5859
|
+
}
|
|
5860
|
+
) : grid
|
|
5851
5861
|
}
|
|
5852
|
-
)
|
|
5862
|
+
);
|
|
5853
5863
|
}
|
|
5854
5864
|
var styles30 = reactNative.StyleSheet.create({
|
|
5855
5865
|
stage: { flex: 1, overflow: "hidden" },
|
|
@@ -6049,7 +6059,7 @@ function CallScreen({
|
|
|
6049
6059
|
inCallManager,
|
|
6050
6060
|
nativeIncomingUi
|
|
6051
6061
|
}) {
|
|
6052
|
-
const insets =
|
|
6062
|
+
const [insets, setInsets] = react.useState({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
6053
6063
|
const ownCalls = react$1.useCalls(callsProp ? null : userId);
|
|
6054
6064
|
const calls = callsProp ?? ownCalls;
|
|
6055
6065
|
const meshAvailable = isNativeWebRtcAvailable(webrtc);
|
|
@@ -6142,14 +6152,16 @@ function CallScreen({
|
|
|
6142
6152
|
[wakeChrome]
|
|
6143
6153
|
);
|
|
6144
6154
|
const hangUp = react.useCallback(() => {
|
|
6145
|
-
const othersOnCall = (usingSfu ? sfu.participants : mesh.participants).filter(
|
|
6146
|
-
(p) => !p.isSelf
|
|
6147
|
-
).length;
|
|
6148
6155
|
sfu.leave();
|
|
6149
6156
|
mesh.leave();
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6157
|
+
void calls.hangUp();
|
|
6158
|
+
}, [sfu, mesh, calls]);
|
|
6159
|
+
const othersNow = (usingSfu ? sfu.participants : mesh.participants).filter(
|
|
6160
|
+
(p) => !p.isSelf
|
|
6161
|
+
).length;
|
|
6162
|
+
react.useEffect(() => {
|
|
6163
|
+
calls.reportOthersOnCall?.(othersNow);
|
|
6164
|
+
}, [calls, othersNow]);
|
|
6153
6165
|
const alone = usingSfu ? sfu.alone : mesh.alone;
|
|
6154
6166
|
const endedOnEmpty = react.useRef(false);
|
|
6155
6167
|
if (calls.phase !== "active") endedOnEmpty.current = false;
|
|
@@ -6206,165 +6218,177 @@ function CallScreen({
|
|
|
6206
6218
|
onRequestClose: hangUp,
|
|
6207
6219
|
children: [
|
|
6208
6220
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.StatusBar, { barStyle: "light-content" }),
|
|
6209
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6210
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6221
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNativeSafeAreaContext.SafeAreaProvider, { children: [
|
|
6222
|
+
/* @__PURE__ */ jsxRuntime.jsx(InsetsProbe, { onChange: setInsets }),
|
|
6223
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.Pressable, { style: styles31.screen, onPress: toggleChrome, accessible: false, children: [
|
|
6224
|
+
/* @__PURE__ */ jsxRuntime.jsx(CallBackdrop, {}),
|
|
6225
|
+
showStage ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6226
|
+
CallVideoGrid,
|
|
6227
|
+
{
|
|
6228
|
+
participants,
|
|
6229
|
+
livekitReactNative,
|
|
6230
|
+
labelFor: label,
|
|
6231
|
+
onLocalPress: () => void sfu.switchCamera(),
|
|
6232
|
+
chromeInsets,
|
|
6233
|
+
safeArea: { top: insets.top, bottom: insets.bottom }
|
|
6234
|
+
}
|
|
6235
|
+
) : (
|
|
6236
|
+
// Audio (and pre-media) calls carry their identity in the
|
|
6237
|
+
// middle of the scene — name under the avatar, status in a
|
|
6238
|
+
// pill — rather than a bar pinned to the top of a void.
|
|
6239
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6240
|
+
reactNative.View,
|
|
6241
|
+
{
|
|
6242
|
+
style: [styles31.identity, { paddingBottom: insets.bottom + 160 }],
|
|
6243
|
+
pointerEvents: "none",
|
|
6244
|
+
children: [
|
|
6245
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.avatarStage, children: [
|
|
6246
|
+
(ringingIn || ringingOut) && /* @__PURE__ */ jsxRuntime.jsx(PulseRings, { size: 132, color: callColors.glow }),
|
|
6247
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6248
|
+
CallAvatar,
|
|
6249
|
+
{
|
|
6250
|
+
name: peerIds.length === 1 ? label(peerIds[0]) : title,
|
|
6251
|
+
seed: titleConversationId ?? peerIds[0] ?? "call",
|
|
6252
|
+
size: 132
|
|
6253
|
+
}
|
|
6254
|
+
)
|
|
6255
|
+
] }),
|
|
6256
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 2, style: styles31.identityTitle, children: title }),
|
|
6257
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.statusPill, children: [
|
|
6258
|
+
connected && /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.statusDot }),
|
|
6259
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.statusText, children: subtitle })
|
|
6260
|
+
] })
|
|
6261
|
+
]
|
|
6262
|
+
}
|
|
6263
|
+
)
|
|
6264
|
+
),
|
|
6265
|
+
chromeVisible && showStage && /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles31.header, { paddingTop: insets.top + 14 }], pointerEvents: "box-none", children: [
|
|
6266
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles31.title, children: title }),
|
|
6267
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.subtitleRow, children: [
|
|
6268
|
+
isGroup && /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "users", size: 14, color: callColors.textDim, label: null }),
|
|
6269
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.subtitle, children: isGroup ? `${participants.length} \xB7 ${subtitle}` : subtitle })
|
|
6270
|
+
] })
|
|
6271
|
+
] }),
|
|
6272
|
+
chromeVisible && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6226
6273
|
reactNative.View,
|
|
6227
6274
|
{
|
|
6228
|
-
style: [styles31.
|
|
6229
|
-
pointerEvents: "none",
|
|
6275
|
+
style: [styles31.controls, { paddingBottom: insets.bottom + 22 }],
|
|
6276
|
+
pointerEvents: "box-none",
|
|
6230
6277
|
children: [
|
|
6231
|
-
/* @__PURE__ */ jsxRuntime.
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
CallAvatar,
|
|
6235
|
-
{
|
|
6236
|
-
name: peerIds.length === 1 ? label(peerIds[0]) : title,
|
|
6237
|
-
seed: titleConversationId ?? peerIds[0] ?? "call",
|
|
6238
|
-
size: 132
|
|
6239
|
-
}
|
|
6240
|
-
)
|
|
6241
|
-
] }),
|
|
6242
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 2, style: styles31.identityTitle, children: title }),
|
|
6243
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.statusPill, children: [
|
|
6244
|
-
connected && /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.statusDot }),
|
|
6245
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.statusText, children: subtitle })
|
|
6246
|
-
] })
|
|
6247
|
-
]
|
|
6248
|
-
}
|
|
6249
|
-
)
|
|
6250
|
-
),
|
|
6251
|
-
chromeVisible && showStage && /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles31.header, { paddingTop: insets.top + 14 }], pointerEvents: "box-none", children: [
|
|
6252
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: styles31.title, children: title }),
|
|
6253
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.subtitleRow, children: [
|
|
6254
|
-
isGroup && /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "users", size: 14, color: callColors.textDim, label: null }),
|
|
6255
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.subtitle, children: isGroup ? `${participants.length} \xB7 ${subtitle}` : subtitle })
|
|
6256
|
-
] })
|
|
6257
|
-
] }),
|
|
6258
|
-
chromeVisible && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6259
|
-
reactNative.View,
|
|
6260
|
-
{
|
|
6261
|
-
style: [styles31.controls, { paddingBottom: insets.bottom + 22 }],
|
|
6262
|
-
pointerEvents: "box-none",
|
|
6263
|
-
children: [
|
|
6264
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.error, children: error.message }),
|
|
6265
|
-
!meshAvailable && !livekit && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.error, children: "No WebRTC module supplied \u2014 this call has no audio." }),
|
|
6266
|
-
ringingIn ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.answerRow, children: [
|
|
6267
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6268
|
-
CallControlButton,
|
|
6269
|
-
{
|
|
6270
|
-
icon: "phone-off",
|
|
6271
|
-
tone: "danger",
|
|
6272
|
-
large: true,
|
|
6273
|
-
label: "Decline",
|
|
6274
|
-
onPress: () => void calls.decline(),
|
|
6275
|
-
accessibilityLabel: "Decline call"
|
|
6276
|
-
}
|
|
6277
|
-
),
|
|
6278
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6279
|
-
CallControlButton,
|
|
6280
|
-
{
|
|
6281
|
-
icon: isVideoCall ? "video" : "phone",
|
|
6282
|
-
tone: "accept",
|
|
6283
|
-
large: true,
|
|
6284
|
-
label: "Accept",
|
|
6285
|
-
onPress: () => void calls.accept(),
|
|
6286
|
-
accessibilityLabel: "Accept call"
|
|
6287
|
-
}
|
|
6288
|
-
)
|
|
6289
|
-
] }) : ended ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.row, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6290
|
-
CallControlButton,
|
|
6291
|
-
{
|
|
6292
|
-
icon: "close",
|
|
6293
|
-
onPress: calls.reset,
|
|
6294
|
-
label: "Close",
|
|
6295
|
-
accessibilityLabel: "Close"
|
|
6296
|
-
}
|
|
6297
|
-
) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6298
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.dock, children: [
|
|
6278
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.error, children: error.message }),
|
|
6279
|
+
!meshAvailable && !livekit && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: styles31.error, children: "No WebRTC module supplied \u2014 this call has no audio." }),
|
|
6280
|
+
ringingIn ? /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.answerRow, children: [
|
|
6299
6281
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6300
6282
|
CallControlButton,
|
|
6301
6283
|
{
|
|
6302
|
-
icon:
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6284
|
+
icon: "phone-off",
|
|
6285
|
+
tone: "danger",
|
|
6286
|
+
large: true,
|
|
6287
|
+
label: "Decline",
|
|
6288
|
+
onPress: () => void calls.decline(),
|
|
6289
|
+
accessibilityLabel: "Decline call"
|
|
6307
6290
|
}
|
|
6308
6291
|
),
|
|
6309
6292
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6310
6293
|
CallControlButton,
|
|
6311
6294
|
{
|
|
6312
|
-
icon:
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
),
|
|
6319
|
-
usingSfu && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6320
|
-
CallControlButton,
|
|
6321
|
-
{
|
|
6322
|
-
icon: videoOn ? "video" : "video-off",
|
|
6323
|
-
label: "Camera",
|
|
6324
|
-
active: !videoOn,
|
|
6325
|
-
onPress: withWake(() => void sfu.toggleCamera()),
|
|
6326
|
-
accessibilityLabel: videoOn ? "Turn camera off" : "Turn camera on"
|
|
6327
|
-
}
|
|
6328
|
-
),
|
|
6329
|
-
usingSfu && videoOn && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6330
|
-
CallControlButton,
|
|
6331
|
-
{
|
|
6332
|
-
icon: "camera-flip",
|
|
6333
|
-
label: "Flip",
|
|
6334
|
-
onPress: withWake(() => void sfu.switchCamera()),
|
|
6335
|
-
accessibilityLabel: "Switch camera"
|
|
6295
|
+
icon: isVideoCall ? "video" : "phone",
|
|
6296
|
+
tone: "accept",
|
|
6297
|
+
large: true,
|
|
6298
|
+
label: "Accept",
|
|
6299
|
+
onPress: () => void calls.accept(),
|
|
6300
|
+
accessibilityLabel: "Accept call"
|
|
6336
6301
|
}
|
|
6337
6302
|
)
|
|
6338
|
-
] }),
|
|
6339
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.hangUpRow, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6303
|
+
] }) : ended ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.row, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6340
6304
|
CallControlButton,
|
|
6341
6305
|
{
|
|
6342
|
-
icon: "
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
accessibilityLabel: ringingOut ? "Cancel call" : "Hang up"
|
|
6306
|
+
icon: "close",
|
|
6307
|
+
onPress: calls.reset,
|
|
6308
|
+
label: "Close",
|
|
6309
|
+
accessibilityLabel: "Close"
|
|
6347
6310
|
}
|
|
6348
|
-
) })
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6311
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6312
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles31.dock, children: [
|
|
6313
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6314
|
+
CallControlButton,
|
|
6315
|
+
{
|
|
6316
|
+
icon: micOn ? "mic" : "mic-off",
|
|
6317
|
+
label: micOn ? "Mute" : "Unmute",
|
|
6318
|
+
active: !micOn,
|
|
6319
|
+
onPress: withWake(toggleMic),
|
|
6320
|
+
accessibilityLabel: micOn ? "Mute microphone" : "Unmute microphone"
|
|
6321
|
+
}
|
|
6322
|
+
),
|
|
6323
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6324
|
+
CallControlButton,
|
|
6325
|
+
{
|
|
6326
|
+
icon: speakerIcon(audio),
|
|
6327
|
+
label: speakerLabel(audio),
|
|
6328
|
+
active: audio.speakerOn,
|
|
6329
|
+
onPress: withWake(onSpeakerPress),
|
|
6330
|
+
accessibilityLabel: "Audio output"
|
|
6331
|
+
}
|
|
6332
|
+
),
|
|
6333
|
+
usingSfu && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6334
|
+
CallControlButton,
|
|
6335
|
+
{
|
|
6336
|
+
icon: videoOn ? "video" : "video-off",
|
|
6337
|
+
label: "Camera",
|
|
6338
|
+
active: !videoOn,
|
|
6339
|
+
onPress: withWake(() => void sfu.toggleCamera()),
|
|
6340
|
+
accessibilityLabel: videoOn ? "Turn camera off" : "Turn camera on"
|
|
6341
|
+
}
|
|
6342
|
+
),
|
|
6343
|
+
usingSfu && videoOn && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6344
|
+
CallControlButton,
|
|
6345
|
+
{
|
|
6346
|
+
icon: "camera-flip",
|
|
6347
|
+
label: "Flip",
|
|
6348
|
+
onPress: withWake(() => void sfu.switchCamera()),
|
|
6349
|
+
accessibilityLabel: "Switch camera"
|
|
6350
|
+
}
|
|
6351
|
+
)
|
|
6352
|
+
] }),
|
|
6353
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles31.hangUpRow, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6354
|
+
CallControlButton,
|
|
6355
|
+
{
|
|
6356
|
+
icon: "phone-off",
|
|
6357
|
+
tone: "danger",
|
|
6358
|
+
large: true,
|
|
6359
|
+
onPress: ringingOut ? () => void calls.cancel() : hangUp,
|
|
6360
|
+
accessibilityLabel: ringingOut ? "Cancel call" : "Hang up"
|
|
6361
|
+
}
|
|
6362
|
+
) })
|
|
6363
|
+
] })
|
|
6364
|
+
]
|
|
6365
|
+
}
|
|
6366
|
+
),
|
|
6367
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6368
|
+
AudioRouteSheet,
|
|
6369
|
+
{
|
|
6370
|
+
visible: routesOpen,
|
|
6371
|
+
routes: audio.routes,
|
|
6372
|
+
selectedRouteId: audio.selectedRouteId,
|
|
6373
|
+
onSelect: audio.selectRoute,
|
|
6374
|
+
onClose: () => setRoutesOpen(false)
|
|
6375
|
+
}
|
|
6376
|
+
)
|
|
6377
|
+
] })
|
|
6363
6378
|
] })
|
|
6364
6379
|
]
|
|
6365
6380
|
}
|
|
6366
6381
|
);
|
|
6367
6382
|
}
|
|
6383
|
+
function InsetsProbe({
|
|
6384
|
+
onChange
|
|
6385
|
+
}) {
|
|
6386
|
+
const insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
6387
|
+
react.useEffect(() => {
|
|
6388
|
+
onChange({ top: insets.top, bottom: insets.bottom, left: insets.left, right: insets.right });
|
|
6389
|
+
}, [insets.top, insets.bottom, insets.left, insets.right, onChange]);
|
|
6390
|
+
return null;
|
|
6391
|
+
}
|
|
6368
6392
|
function speakerIcon(audio) {
|
|
6369
6393
|
if (audio.externalDevice) return "headphones";
|
|
6370
6394
|
return audio.speakerOn ? "speaker" : "speaker-off";
|