Virtualize Messages List - only render what's visible

This commit is contained in:
Scott Nonnenberg 2019-05-31 15:42:01 -07:00
parent a976cfe6b6
commit 5ebd8bc690
73 changed files with 4717 additions and 2745 deletions

View file

@ -21,6 +21,7 @@ interface Props {
withContentBelow?: boolean;
bottomOverlay?: boolean;
isSticker?: boolean;
isSelected?: boolean;
stickerSize?: number;
i18n: LocalizerType;
@ -37,6 +38,7 @@ export class ImageGrid extends React.Component<Props> {
bottomOverlay,
i18n,
isSticker,
isSelected,
stickerSize,
onError,
onClick,
@ -83,6 +85,7 @@ export class ImageGrid extends React.Component<Props> {
curveBottomRight={curveBottomRight}
attachment={attachments[0]}
playIconOverlay={isVideoAttachment(attachments[0])}
isSelected={isSelected}
height={finalHeight}
width={finalWidth}
url={getUrl(attachments[0])}