-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
26 lines (23 loc) · 987 Bytes
/
App.js
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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './screens/HomeScreen';
import NewEventScreen from './screens/NewEventScreen';
import EventScreen from './screens/EventScreen';
import { EventosContextProvider } from './context/EventosContext';
const Stack = createStackNavigator();
function App() {
return (
<EventosContextProvider>
<NavigationContainer>
<Stack.Navigator >
<Stack.Screen name="Mis Movimientos" component={HomeScreen} options={{ headerTitleAlign: 'center' }} />
<Stack.Screen name="Nuevo Evento" component={NewEventScreen} options={{ headerTitleAlign: 'center' }} />
<Stack.Screen name="Event" component={EventScreen} options={{ headerTitleAlign: 'center' }}
/>
</Stack.Navigator>
</NavigationContainer>
</EventosContextProvider>
);
}
export default App;