From 6a62c5120f41f17e0f3841080738bbbd5f303609 Mon Sep 17 00:00:00 2001 From: val11n1 <76488718+val11n1@users.noreply.github.com> Date: Tue, 29 Jul 2025 00:59:26 +0300 Subject: [PATCH] fix(rn) fix iOS rendering when launched locked --- .../features/filmstrip/components/native/Filmstrip.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/react/features/filmstrip/components/native/Filmstrip.tsx b/react/features/filmstrip/components/native/Filmstrip.tsx index ad0d927ae0..ef82de7a4c 100644 --- a/react/features/filmstrip/components/native/Filmstrip.tsx +++ b/react/features/filmstrip/components/native/Filmstrip.tsx @@ -253,9 +253,13 @@ class Filmstrip extends PureComponent { const filmstripStyle = isNarrowAspectRatio ? styles.filmstripNarrow : styles.filmstripWide; const { height, width } = this._getDimensions(); const { height: thumbnailHeight, width: thumbnailWidth, margin } = styles.thumbnail; - const initialNumToRender = Math.ceil(isNarrowAspectRatio - ? width / (thumbnailWidth + (2 * margin)) - : height / (thumbnailHeight + (2 * margin)) + const initialNumToRender = Math.max( + 0, + Math.ceil( + isNarrowAspectRatio + ? width / (thumbnailWidth + (2 * margin)) + : height / (thumbnailHeight + (2 * margin)) + ) ); let participants;