MCPcopy Create free account
hub / github.com/dabit3/react-native-ai / MainComponent

Function MainComponent

app/src/main.tsx:15–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const Tab = createBottomTabNavigator()
14
15function MainComponent() {
16 const insets = useSafeAreaInsets()
17 const { theme } = useContext(ThemeContext)
18 const styles = getStyles({ theme, insets })
19
20 return (
21 <View style={styles.container}>
22 <Tab.Navigator
23 screenOptions={{
24 tabBarActiveTintColor: theme.tabBarActiveTintColor,
25 tabBarInactiveTintColor: theme.tabBarInactiveTintColor,
26 tabBarStyle: {
27 borderTopWidth: 0,
28 backgroundColor: theme.backgroundColor,
29 },
30 }}
31 >
32 <Tab.Screen
33 name="Chat"
34 component={Chat}
35 options={{
36 header: () => <Header />,
37 tabBarIcon: ({ color, size }) => (
38 <FeatherIcon
39 name="message-circle"
40 color={color}
41 size={size}
42 />
43 ),
44 }}
45 />
46 <Tab.Screen
47 name="Images"
48 component={Images}
49 options={{
50 header: () => <Header />,
51 tabBarIcon: ({ color, size }) => (
52 <FeatherIcon
53 name="image"
54 color={color}
55 size={size}
56 />
57 ),
58 }}
59 />
60 <Tab.Screen
61 name="Settings"
62 component={Settings}
63 options={{
64 header: () => <Header />,
65 tabBarIcon: ({ color, size }) => (
66 <FeatherIcon
67 name="sliders"
68 color={color}
69 size={size}
70 />
71 ),
72 }}

Callers

nothing calls this directly

Calls 1

getStylesFunction · 0.70

Tested by

no test coverage detected