fix(mobile): large header init value

This commit is contained in:
DIYgod
2025-03-17 20:27:57 +08:00
parent 1543cb699c
commit 9dc0e8375f
2 changed files with 2 additions and 1 deletions
@@ -52,7 +52,7 @@ const useHideableBottom = (
const largeDefaultHeaderHeightRef = useRef(
originalDefaultHeaderHeight + (hideableBottomHeight || 0),
)
const largeHeaderHeight = useSharedValue(originalDefaultHeaderHeight)
const largeHeaderHeight = useSharedValue(largeDefaultHeaderHeightRef.current)
const [hideableBottomRef, setHideableBottomRef] = useState<View | undefined>()
useEffect(() => {
@@ -28,6 +28,7 @@ export function TimelineSelectorProvider({ children }: { children: React.ReactNo
const isFeed = screenType === "feed"
const isTimeline = screenType === "timeline"
const isSubscriptions = screenType === "subscriptions"
return (
<NavigationContext.Provider value={useMemo(() => ({ scrollY }), [scrollY])}>
<NavigationBlurEffectHeader