-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
23 lines (20 loc) · 780 Bytes
/
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 * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Provider as PaperProvider } from 'react-native-paper';
import CarListScreen from './src/Screens/CarList';
import WelcomeScreen from './src/Screens/Welcome';
const Stack = createNativeStackNavigator();
function App() {
return (
<PaperProvider>
<NavigationContainer>
<Stack.Navigator initialRouteName="CarList">
<Stack.Screen name="CarList" component={CarListScreen} />
<Stack.Screen name="Welcome" component={WelcomeScreen} />
</Stack.Navigator>
</NavigationContainer>
</PaperProvider>
);
}
export default App;