import { TextStyle, ViewStyle } from "react-native" import { createBottomTabNavigator } from "@react-navigation/bottom-tabs" import { useSafeAreaInsets } from "react-native-safe-area-context" import { Icon } from "@/components/Icon" import { EpisodeProvider } from "@/context/EpisodeContext" import { translate } from "@/i18n/translate" import { DemoCommunityScreen } from "@/screens/DemoCommunityScreen" import { DemoDebugScreen } from "@/screens/DemoDebugScreen" import { DemoPodcastListScreen } from "@/screens/DemoPodcastListScreen" import { DemoShowroomScreen } from "@/screens/DemoShowroomScreen/DemoShowroomScreen" import type { ThemedStyle } from "@/theme/types" import { useAppTheme } from "@/theme/context" import type { DemoTabParamList } from "./navigationTypes" const Tab = createBottomTabNavigator() /** * This is the main navigator for the demo screens with a bottom tab bar. * Each tab is a stack navigator with its own set of screens. * * More info: https://reactnavigation.org/docs/bottom-tab-navigator/ * @returns {JSX.Element} The rendered `DemoNavigator`. */ export function DemoNavigator() { const { bottom } = useSafeAreaInsets() const { themed, theme: { colors }, } = useAppTheme() return ( ( ), }} /> ( ), }} /> ( ), }} /> ( ), }} /> ) } const $tabBar: ThemedStyle = ({ colors }) => ({ backgroundColor: colors.background, borderTopColor: colors.transparent, }) const $tabBarItem: ThemedStyle = ({ spacing }) => ({ paddingTop: spacing.md, }) const $tabBarLabel: ThemedStyle = ({ colors, typography }) => ({ fontSize: 12, fontFamily: typography.primary.medium, lineHeight: 16, color: colors.text, }) // @demo remove-file