about summary refs log tree commit diff
path: root/src/view/screens/Storybook/ListContained.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-06 13:45:14 -0700
committerGitHub <noreply@github.com>2024-05-06 21:45:14 +0100
commit99f3f10fe7890186b3c970cbd00981a1ccefc098 (patch)
treeeb3fea720ad655603569d02edb52a74a7713edb8 /src/view/screens/Storybook/ListContained.tsx
parent0b6ace990e47fee1154b9ca03bbd8d2c41a15961 (diff)
downloadvoidsky-99f3f10fe7890186b3c970cbd00981a1ccefc098.tar.zst
A few `containWeb` List nits (#3877)
* use getters for returned values

* pass ref

* add log to `onScroll` in tester

* improve expect error
Diffstat (limited to 'src/view/screens/Storybook/ListContained.tsx')
-rw-r--r--src/view/screens/Storybook/ListContained.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/view/screens/Storybook/ListContained.tsx b/src/view/screens/Storybook/ListContained.tsx
index c4e06efb2..b3ea091f4 100644
--- a/src/view/screens/Storybook/ListContained.tsx
+++ b/src/view/screens/Storybook/ListContained.tsx
@@ -22,9 +22,15 @@ export function ListContained() {
     <>
       <View style={{width: '100%', height: 300}}>
         <ScrollProvider
-          onScroll={() => {
+          onScroll={e => {
             'worklet'
-            console.log('onScroll')
+            console.log(
+              JSON.stringify({
+                contentOffset: e.contentOffset,
+                layoutMeasurement: e.layoutMeasurement,
+                contentSize: e.contentSize,
+              }),
+            )
           }}>
           <List
             data={data}