about summary refs log tree commit diff
path: root/src/view/screens/Storybook/ListContained.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-11-26 15:55:27 +0000
committerGitHub <noreply@github.com>2024-11-26 15:55:27 +0000
commitce1b04b9250d25ec781c7e1ee046ea6358a81a83 (patch)
tree952bc4c73345de774157dd6f9269493dcdaa31be /src/view/screens/Storybook/ListContained.tsx
parent56a88098d2ef8e271c7d63cb7d73cc220a787658 (diff)
downloadvoidsky-ce1b04b9250d25ec781c7e1ee046ea6358a81a83.tar.zst
Fix `<List>` types (#6756)
* fix List and ScrollView types

* add comment

* rm omitting ref
Diffstat (limited to 'src/view/screens/Storybook/ListContained.tsx')
-rw-r--r--src/view/screens/Storybook/ListContained.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/screens/Storybook/ListContained.tsx b/src/view/screens/Storybook/ListContained.tsx
index 833320148..e673743eb 100644
--- a/src/view/screens/Storybook/ListContained.tsx
+++ b/src/view/screens/Storybook/ListContained.tsx
@@ -1,15 +1,15 @@
 import React from 'react'
-import {FlatList, View} from 'react-native'
+import {View} from 'react-native'
 
 import {ScrollProvider} from '#/lib/ScrollContext'
-import {List} from '#/view/com/util/List'
+import {List, ListMethods} from '#/view/com/util/List'
 import {Button, ButtonText} from '#/components/Button'
 import * as Toggle from '#/components/forms/Toggle'
 import {Text} from '#/components/Typography'
 
 export function ListContained() {
   const [animated, setAnimated] = React.useState(false)
-  const ref = React.useRef<FlatList>(null)
+  const ref = React.useRef<ListMethods>(null)
 
   const data = React.useMemo(() => {
     return Array.from({length: 100}, (_, i) => ({