fix(rn) fix iOS rendering when launched locked

This commit is contained in:
val11n1
2025-07-29 00:59:26 +03:00
committed by GitHub
parent 64270f3015
commit 6a62c5120f

View File

@@ -253,9 +253,13 @@ class Filmstrip extends PureComponent<IProps> {
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;