-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (20 loc) · 772 Bytes
/
Copy pathApp.js
File metadata and controls
25 lines (20 loc) · 772 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
import { Text, View } from 'react-native';
import { createStaticNavigation } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
// Screens -------------------------------------------------
import HomeScreen from './screens/HomeScreen';
import EventsScreen from './screens/EventsScreen';
import ContactsScreen from './screens/ContactsScreen';
// Navigator -----------------------------------------------
const Tabs = createBottomTabNavigator({
screens: {
Home: HomeScreen,
Events: EventsScreen,
Contacts: ContactsScreen,
},
});
// Root navigation component -------------------------------
const Navigation = createStaticNavigation(Tabs);
export default function App() {
return <Navigation />;
}