MCPcopy Create free account
hub / github.com/callstack/react-native-paper / HomeTab

Function HomeTab

example/src/Examples/ThemingWithReactNavigation.tsx:29–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29const HomeTab = () => {
30 return (
31 <Tab.Navigator
32 screenOptions={{
33 headerShown: false,
34 tabBarButton: (props) => (
35 <PlatformPressable
36 {...props}
37 android_ripple={{ color: 'transparent' }}
38 />
39 ),
40 }}
41 >
42 <Tab.Screen
43 name="Home"
44 component={HomeScreen}
45 options={{
46 tabBarIcon: ({ color, size }) => {
47 return <Icon name="home" size={size} color={color} />;
48 },
49 }}
50 />
51 <Tab.Screen
52 name="Settings"
53 component={SettingsScreen}
54 options={{
55 tabBarIcon: ({ color, size }) => {
56 return <Icon name="cog" size={size} color={color} />;
57 },
58 }}
59 />
60 </Tab.Navigator>
61 );
62};
63
64function ThemingWithReactNavigation() {
65 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…