-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
23 lines (21 loc) · 1.03 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
import { NavigationContainer, useNavigationBuilder } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import React from 'react';
import ContactsScreen from './screens/ContactsScreen';
import LoadingScreen from './screens/LoadingScreen';
import LandingScreen from './screens/LandingScreen';
import SettingsScreen from './screens/SettingsScreen';
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="LandingScreen">
<Stack.Screen name="LandingScreen" component={LandingScreen} options={{ headerShown: false }} />
<Stack.Screen name="ContactsScreen" component={ContactsScreen} options={{ headerShown: false }} />
<Stack.Screen name="LoadingScreen" component={LoadingScreen} options={{ headerShown: false }} />
<Stack.Screen name="SettingsScreen" component={SettingsScreen} options={{ headerShown: false }} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;