From 94d9357b69c8effb63c792fcd613745c5cca4138 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 24 Sep 2025 11:11:03 -0500 Subject: [PATCH] Make virtualization more apparent in storybook --- src/view/screens/StorybookLists/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/screens/StorybookLists/index.tsx b/src/view/screens/StorybookLists/index.tsx index 3a8ccaa0db..c633522668 100644 --- a/src/view/screens/StorybookLists/index.tsx +++ b/src/view/screens/StorybookLists/index.tsx @@ -39,7 +39,7 @@ export function Inner() { runOnJS(log)(`scroll ${e.contentOffset.y}`) }, []) - const items: Item[] = Array.from({length: 100}).map((_, i) => ({ + const items: Item[] = Array.from({length: 1000}).map((_, i) => ({ key: `item-${i + 1}`, type: 'item' as const, title: `Item ${i + 1}`, @@ -59,6 +59,8 @@ export function Inner() { return ( + windowSize={9} + maxToRenderPerBatch={5} data={items} stickyHeaderIndices={[1]} renderItem={({item, index}) => {