-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
45 lines (38 loc) · 1.58 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import MainScreen from './src/screens/MainScreen';
import AnotherScreen from './src/screens/AnotherScreen';
import SignIn from './src/screens/SignIn';
import Dashboard from './src/screens/Dashboard';
import Tabs from './navigation/Tabs';
import AllianceScreen from './src/screens/AllianceScreen';
import TodoScreen from './src/screens/TodoScreen';
import TodoAdd from './src/components/TodoAdd';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="MainScreen"
screenOptions={{
headerStyle: {
backgroundColor: '#f4511e',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
headerTitleAlign:'center',
animation:'slide_from_right'
}}
>
<Stack.Screen name="Todo" component={TodoScreen} options={{ headerShown:false}} />
<Stack.Screen name="Tabs" component={Tabs} options={{ headerShown:false}} />
<Stack.Screen name="TodoAdd" component={TodoAdd} options={{ headerShown:false}} />
</Stack.Navigator>
{/* <NavigationContainer>
<Tabs/>
</NavigationContainer> */}
</NavigationContainer>
);
}