-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (24 loc) · 739 Bytes
/
App.js
File metadata and controls
25 lines (24 loc) · 739 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 { SafeAreaView } from 'react-native';
import HomeScreen from './components/HomeScreen';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import TaskPage from './components/TaskPage';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name='Home'
options={{ headerShown: false }}
component={HomeScreen}
/>
<Stack.Screen
name='Task'
options={{ headerShown: false }}
component={TaskPage}
/>
</Stack.Navigator>
</NavigationContainer>
);
}