-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (32 loc) · 1020 Bytes
/
App.js
File metadata and controls
34 lines (32 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { GluestackUIProvider } from '@gluestack-ui/themed';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { config } from '@gluestack-ui/config';
import { NavigationContainer } from '@react-navigation/native';
import Door from './components/Doors';
import Phone from './components/Phones';
import { FontAwesome5 } from '@expo/vector-icons';
export default function App() {
const Tab = createBottomTabNavigator();
return (
<GluestackUIProvider config={config}>
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen
name="Doorknocking"
options={{
tabBarIcon: ({ color, size }) => <FontAwesome5 name="door-open" color={color} size={size} />
}}
component={Door}
/>
<Tab.Screen
name="Phone Calls"
options={{
tabBarIcon: ({ color, size }) => <FontAwesome5 name="phone" color={color} size={size} />
}}
component={Phone}
/>
</Tab.Navigator>
</NavigationContainer>
</GluestackUIProvider>
);
}