-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
19 lines (17 loc) · 690 Bytes
/
App.tsx
File metadata and controls
19 lines (17 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import MainPage from './src/pages/MainPage';
import DisplayPage from './src/pages/DisplayPage';
const Stack = createNativeStackNavigator();
const App = () => {
return (
// The Navigation Container of the app.
<NavigationContainer>
<Stack.Navigator initialRouteName="MainPage">
<Stack.Screen name="MainPage" component={MainPage} />
<Stack.Screen name="DisplayPage" component={DisplayPage} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;