-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
38 lines (33 loc) · 961 Bytes
/
App.tsx
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
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Home from './components/Home';
import TodoDetails from './components/TodoDetails';
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={Home}
options={{
title: 'Home',
headerStyle: {backgroundColor: '#333'},
headerTitleStyle: {color: '#fff'},
}}
/>
<Stack.Screen
name="Details"
component={TodoDetails}
options={{
title: 'Details',
headerStyle: {backgroundColor: '#333'},
headerTitleStyle: {color: '#fff'},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;