-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
21 lines (19 loc) · 730 Bytes
/
App.js
File metadata and controls
21 lines (19 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import WelcomeScreen from './src/screen/WelcomeScreen';
import HomeScreen from './src/screen/HomeScreen';
const Stack = createNativeStackNavigator();
export default function App() {
useEffect(()=>{
apiCall('what is quantum computing')
},[])
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Welcome">
<Stack.Screen name="Welcome" component={WelcomeScreen} options={{ headerShown: false }} />
<Stack.Screen name="Home" component={HomeScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}