bsky-app/src/lib/hooks
dan b8dbb71781
Fix fixed footer experiment (#4969)
* Split minimal shell mode into headerMode and footerMode

For now, we'll always write them in sync. When we read them, we'll use headerMode as source of truth. This will let us keep footerMode independent in a future commit.

* Remove fixed_bottom_bar special cases during calculation

This isn't the right time to determine special behavior. Instead we'll adjust footerMode itself conditionally on the gate.

* Copy-paste setMode into MainScrollProvider

This lets us fork the implementation later just for this case.

* Gate footer adjustment in MainScrollProvider

This is the final piece. Normal calls to setMode() keep setting both header and footer, but MainScrollProvider adjusts the footer conditionally.
2024-08-22 23:27:33 +01:00
..
__tests__ Add useGetTimeAgo and utils (#4556) 2024-06-18 10:55:02 -05:00
useAccountSwitcher.ts Handle failed resumeSession case when switching accounts (#4047) 2024-05-16 10:46:20 -05:00
useAnimatedScrollHandler_FIXED.ts Fix scroll on native (#2170) 2023-12-11 13:47:41 -08:00
useAnimatedScrollHandler_FIXED.web.ts Fix scroll on native (#2170) 2023-12-11 13:47:41 -08:00
useAnimatedValue.ts Merge main into the Web PR (#230) 2023-02-22 14:23:57 -06:00
useAppState.ts [🐴] update convo list from message bus (#4189) 2024-05-24 13:59:28 -05:00
useBottomBarOffset.ts Starter Packs (#4332) 2024-06-21 21:38:04 -07:00
useColorSchemeStyle.ts #435 web dark mode (#455) 2023-04-12 18:49:40 -07:00
useCustomPalette.ts Add user invite codes (#393) 2023-04-05 18:56:02 -05:00
useDedupe.ts useDedupe callback (#4855) 2024-07-30 15:19:23 -07:00
useDraggableScrollView.ts make tab bar scroll view draggable on web 2023-05-24 15:04:30 -07:00
useGoBack.ts Add list hidden screen (#4958) 2024-08-20 15:43:40 -07:00
useInitialNumToRender.ts Adjust FlatList performance in main feeds (#3134) 2024-03-06 15:33:23 -08:00
useIntentHandler.ts Make all referrer info sync (#4782) 2024-07-12 07:37:43 -07:00
useIsKeyboardVisible.ts ListAddUser modal UX improvements (#1809) 2023-11-03 16:44:00 -07:00
useMinimalShellTransform.ts Fix fixed footer experiment (#4969) 2024-08-22 23:27:33 +01:00
useNavigationDeduped.ts Dedupe navigation events (push, navigate, pop, etc) (#3179) 2024-03-12 09:46:25 -07:00
useNavigationTabState.ts Move feeds screen into common navigator, handle usages (#4365) 2024-06-11 11:08:06 -07:00
useNavigationTabState.web.ts rename "MessagesList" to "Messages" (#3826) 2024-05-02 21:02:45 +01:00
useNonReactiveCallback.ts Fix jumpy modal regression (#1945) 2023-11-16 18:01:51 -08:00
useNotificationHandler.ts Starter Packs (#4332) 2024-06-21 21:38:04 -07:00
useOTAUpdates.ts remove gate from updates (#3646) 2024-04-22 21:06:25 +01:00
useOTAUpdates.web.ts Enable updates for production behind receive_updates gate (#3496) 2024-04-12 14:51:53 -07:00
usePalette.ts Memoize usePalette (#2201) 2023-12-13 07:09:07 +00:00
usePermissions.ts Video compression in composer (#4638) 2024-07-05 17:50:03 -07:00
usePermissions.web.ts Video compression in composer (#4638) 2024-07-05 17:50:03 -07:00
useSetTitle.ts Refactor notifications to use react-query (#1878) 2023-11-12 18:13:11 -08:00
useTabFocusEffect.ts Improvements to notifications screen [APP-520] (#501) 2023-04-20 17:36:25 -05:00
useTimeAgo.ts Force callers of getTimeAgo to pass in the value for "now" (#4560) 2024-06-18 21:50:07 +03:00
useTimer.ts Fix a bunch of type errors and add a type-check to the github workflows (#837) 2023-06-02 15:01:04 -05:00
useToggleMutationQueue.ts Add a mutation queue to fix race conditions in toggles (#1933) 2023-11-16 14:01:01 -08:00
useWebBodyScrollLock.ts remove scrollbar gutter for Chrome when body scroll is locked 2024-03-17 22:20:50 +01:00
useWebMediaQueries.tsx Fix scuffed web styles caused by overlapping viewport breakpoint boundaries (#1985) 2023-11-30 16:14:36 -08:00
useWebScrollRestoration.native.ts New Web Layout (#2126) 2024-01-22 14:46:32 -08:00
useWebScrollRestoration.ts New Web Layout (#2126) 2024-01-22 14:46:32 -08:00