- gitgram-web (4): external link-preview/unfurl cards, rich inline embed players (YouTube/Twitch/Spotify/Vimeo) - gitgram-backend (1): natural-language feed filtering (preferredLangOnly) + Post.contentLanguage - gitgram-mobile (4): notification grouping/aggregation, shared timeAgo util - aitm-api (7): GitNexus graph-RAG query + context retrieval endpoints (flagship surface) - aitm-mcp (2): beads_claim atomic claim-for-work tool + brief-deps projection Note: gitgram-backend adds Post.contentLanguage — run prisma migrate at deploy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import { Animated } from 'react-native';
|
|
import {
|
|
BottomTabBar,
|
|
type BottomTabBarProps,
|
|
} from '@react-navigation/bottom-tabs';
|
|
|
|
import { useMinimalFooterStyle } from '../../hooks/useMinimalShell';
|
|
|
|
/** Height of the tab bar; the footer collapses by this much when hidden. */
|
|
const TAB_BAR_HEIGHT = 80;
|
|
|
|
/**
|
|
* Bottom tab bar that participates in the "minimal shell" hide-on-scroll:
|
|
* it slides down and fades out as the shared shell collapses (driven by the
|
|
* feed's scroll via `useMinimalShell`), and reveals on upward scroll.
|
|
*
|
|
* Wraps the default `BottomTabBar` in an `Animated.View` so we keep all the
|
|
* stock tab behavior (icons, labels, accessibility, soft-reset listeners)
|
|
* while animating the container. The bar stays in normal layout flow so other
|
|
* tab screens keep their existing bottom spacing — it slides off-screen on
|
|
* collapse rather than being absolutely positioned, avoiding any cross-tab
|
|
* content-overlap regression.
|
|
*/
|
|
export default function MinimalShellTabBar(props: BottomTabBarProps) {
|
|
const footerStyle = useMinimalFooterStyle(TAB_BAR_HEIGHT);
|
|
|
|
return (
|
|
<Animated.View style={footerStyle}>
|
|
<BottomTabBar {...props} />
|
|
</Animated.View>
|
|
);
|
|
}
|