diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-12 16:04:14 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-12 16:04:14 -0600 |
commit | 1aec0ee156daa5a1d3e4ead70caf667edb75eebb (patch) | |
tree | e4931885b9dfea5996cad11e47e59f64109d4761 /src/view/screens/Notifications.tsx | |
parent | 470f444eed0d9643612bbdb9533cd64614834c69 (diff) | |
download | voidsky-1aec0ee156daa5a1d3e4ead70caf667edb75eebb.tar.zst |
Hide footer on scroll down (minimal shell mode)
Diffstat (limited to 'src/view/screens/Notifications.tsx')
-rw-r--r-- | src/view/screens/Notifications.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index b168ffaff..8af9d0713 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -5,9 +5,11 @@ import {Feed} from '../com/notifications/Feed' import {useStores} from '../../state' import {NotificationsViewModel} from '../../state/models/notifications-view' import {ScreenParams} from '../routes' +import {useOnMainScroll} from '../lib/useOnMainScroll' export const Notifications = ({navIdx, visible}: ScreenParams) => { const store = useStores() + const onMainScroll = useOnMainScroll(store) useEffect(() => { if (!visible) { @@ -33,7 +35,11 @@ export const Notifications = ({navIdx, visible}: ScreenParams) => { return ( <View style={{flex: 1}}> <ViewHeader title="Notifications" /> - <Feed view={store.me.notifications} onPressTryAgain={onPressTryAgain} /> + <Feed + view={store.me.notifications} + onPressTryAgain={onPressTryAgain} + onScroll={onMainScroll} + /> </View> ) } |