From 4a69401f0c7391ff423b9d295a3288786dac9d6d Mon Sep 17 00:00:00 2001 From: Thiago Brezinski Date: Mon, 8 Jun 2026 17:30:59 +0100 Subject: [PATCH] chore: add examples with 5 and 6 tabs --- apps/example/src/App.tsx | 4 + apps/example/src/Examples/FiveTabs.tsx | 187 +++++++++++++++++++++++++ apps/example/src/Examples/SixTabs.tsx | 87 ++++++++++++ 3 files changed, 278 insertions(+) create mode 100644 apps/example/src/Examples/FiveTabs.tsx create mode 100644 apps/example/src/Examples/SixTabs.tsx diff --git a/apps/example/src/App.tsx b/apps/example/src/App.tsx index 26b5e752..a4bfc631 100644 --- a/apps/example/src/App.tsx +++ b/apps/example/src/App.tsx @@ -23,6 +23,8 @@ import { SafeAreaProvider } from 'react-native-safe-area-context'; import JSBottomTabs from './Examples/JSBottomTabs'; import ThreeTabs from './Examples/ThreeTabs'; import FourTabs from './Examples/FourTabs'; +import FiveTabs from './Examples/FiveTabs'; +import SixTabs from './Examples/SixTabs'; import FourTabsRTL from './Examples/FourTabsRTL'; import MaterialBottomTabs from './Examples/MaterialBottomTabs'; import SFSymbols from './Examples/SFSymbols'; @@ -84,6 +86,8 @@ const examples = [ name: 'Three Tabs', }, { component: FourTabs, name: 'Four Tabs' }, + { component: FiveTabs, name: 'Five Tabs' }, + { component: SixTabs, name: 'Six Tabs' }, { component: SFSymbols, name: 'SF Symbols', diff --git a/apps/example/src/Examples/FiveTabs.tsx b/apps/example/src/Examples/FiveTabs.tsx new file mode 100644 index 00000000..9bb8b725 --- /dev/null +++ b/apps/example/src/Examples/FiveTabs.tsx @@ -0,0 +1,187 @@ +import TabView from 'react-native-bottom-tabs'; +import { useFocusEffect, useNavigation } from '@react-navigation/native'; +import { + createNativeStackNavigator, + type NativeStackNavigationProp, +} from '@react-navigation/native-stack'; +import * as React from 'react'; +import { Button, StyleSheet, Text, View, type ColorValue } from 'react-native'; +import { Article } from '../Screens/Article'; +import { Albums } from '../Screens/Albums'; +import { Contacts } from '../Screens/Contacts'; +import { Chat } from '../Screens/Chat'; + +interface Props { + disablePageAnimations?: boolean; + scrollEdgeAppearance?: 'default' | 'opaque' | 'transparent'; + backgroundColor?: ColorValue; + translucent?: boolean; + rippleColor?: ColorValue; + activeIndicatorColor?: ColorValue; +} + +type ReproStackParamList = { + ReproHome: undefined; + HiddenTabBar: undefined; +}; + +const ReproStack = createNativeStackNavigator(); + +function ReproHomeScreen() { + const navigation = + useNavigation< + NativeStackNavigationProp + >(); + + return ( + + Five tabs repro + + Select the Fifth tab once, return here, open the hidden tab bar screen, + then go back. + +