diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-11-26 15:55:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 15:55:27 +0000 |
commit | ce1b04b9250d25ec781c7e1ee046ea6358a81a83 (patch) | |
tree | 952bc4c73345de774157dd6f9269493dcdaa31be /src/screens/Onboarding/Layout.tsx | |
parent | 56a88098d2ef8e271c7d63cb7d73cc220a787658 (diff) | |
download | voidsky-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.tsx | 3 |
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(() => { |