mirror of https://github.com/tooot-app/app
Update Switch.tsx
This commit is contained in:
parent
0a35aff8ef
commit
bece2a37fd
|
@ -57,8 +57,11 @@ const TabMeSwitch: React.FC = () => {
|
|||
|
||||
const scrollViewRef = useRef<ScrollView>(null)
|
||||
useEffect(() => {
|
||||
scrollViewRef.current?.scrollToEnd({ animated: true })
|
||||
}, [])
|
||||
setTimeout(
|
||||
() => scrollViewRef.current?.scrollToEnd({ animated: true }),
|
||||
150
|
||||
)
|
||||
}, [scrollViewRef.current])
|
||||
|
||||
return (
|
||||
<KeyboardAvoidingView
|
||||
|
|
Loading…
Reference in New Issue