@poolse/react-native 2.23.0 → 2.23.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/CHANGELOG.md +10 -0
- package/dist/index.cjs +20 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5763,7 +5763,10 @@ function CallVideoGrid({
|
|
|
5763
5763
|
const others = useMemo(() => participants.filter((p) => !p.isSelf), [participants]);
|
|
5764
5764
|
const columns = others.length + 1 <= 6 ? 2 : 3;
|
|
5765
5765
|
const rows = Math.ceil((others.length + 1) / columns);
|
|
5766
|
-
const
|
|
5766
|
+
const padTop = safeArea?.top ?? 0;
|
|
5767
|
+
const padBottom = safeArea?.bottom ?? 0;
|
|
5768
|
+
const availableHeight = size.height > 0 ? size.height - padTop - padBottom : 0;
|
|
5769
|
+
const tileHeight = availableHeight > 0 ? (availableHeight - GAP * (rows - 1)) / rows : 0;
|
|
5767
5770
|
const scrolls = tileHeight > 0 && tileHeight < MIN_TILE_HEIGHT;
|
|
5768
5771
|
if (participants.length === 0) return /* @__PURE__ */ jsx(View, { style: styles30.stage, onLayout });
|
|
5769
5772
|
if (others.length <= 1) {
|
|
@@ -5811,17 +5814,24 @@ function CallVideoGrid({
|
|
|
5811
5814
|
},
|
|
5812
5815
|
participant.userId
|
|
5813
5816
|
)) });
|
|
5814
|
-
return /* @__PURE__ */ jsx(
|
|
5815
|
-
|
|
5817
|
+
return /* @__PURE__ */ jsx(
|
|
5818
|
+
View,
|
|
5816
5819
|
{
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5820
|
+
style: [styles30.stage, { paddingTop: padTop, paddingBottom: padBottom }],
|
|
5821
|
+
onLayout,
|
|
5822
|
+
children: scrolls ? /* @__PURE__ */ jsx(
|
|
5823
|
+
ScrollView,
|
|
5824
|
+
{
|
|
5825
|
+
contentContainerStyle: [
|
|
5826
|
+
styles30.scroll,
|
|
5827
|
+
{ paddingBottom: (chromeInsets?.bottom ?? 0) + GAP }
|
|
5828
|
+
],
|
|
5829
|
+
showsVerticalScrollIndicator: false,
|
|
5830
|
+
children: grid
|
|
5831
|
+
}
|
|
5832
|
+
) : grid
|
|
5823
5833
|
}
|
|
5824
|
-
)
|
|
5834
|
+
);
|
|
5825
5835
|
}
|
|
5826
5836
|
var styles30 = StyleSheet.create({
|
|
5827
5837
|
stage: { flex: 1, overflow: "hidden" },
|