about summary refs log tree commit diff
path: root/src/screens/Onboarding/Layout.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/screens/Onboarding/Layout.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/screens/Onboarding/Layout.tsx')
-rw-r--r--src/screens/Onboarding/Layout.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screens/Onboarding/Layout.tsx b/src/screens/Onboarding/Layout.tsx
index 4a07ebd83..54821532c 100644
--- a/src/screens/Onboarding/Layout.tsx
+++ b/src/screens/Onboarding/Layout.tsx
@@ -1,5 +1,6 @@
 import React from 'react'
 import {View} from 'react-native'
+import Animated from 'react-native-reanimated'
 import {useSafeAreaInsets} from 'react-native-safe-area-context'
 import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
@@ -35,7 +36,7 @@ export function Layout({children}: React.PropsWithChildren<{}>) {
   const {gtMobile} = useBreakpoints()
   const onboardDispatch = useOnboardingDispatch()
   const {state, dispatch} = React.useContext(Context)
-  const scrollview = React.useRef<ScrollView>(null)
+  const scrollview = React.useRef<Animated.ScrollView>(null)
   const prevActiveStep = React.useRef<string>(state.activeStep)
 
   React.useEffect(() => {