-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
executable file
·29 lines (25 loc) · 821 Bytes
/
App.js
File metadata and controls
executable file
·29 lines (25 loc) · 821 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
26
27
28
29
/* eslint-disable no-unused-vars */
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {
createStackNavigator,
} from '@react-navigation/stack';
// imports of screens
import HomeScreen from './Pages/HomeScreen';
import UploadsPage from './Pages/UploadsPage';
// Initializing a StackNavigation
let Stack = createStackNavigator();
// The component creates the stack navigation registry.
class App extends React.Component {
render() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName={'HOME'} headerMode="none">
<Stack.Screen name={'HOME'} component={HomeScreen} />
<Stack.Screen name={'UPLOAD_PAGE'} component={UploadsPage} />
</Stack.Navigator>
</NavigationContainer>
);
}
}
export default App;