-
Notifications
You must be signed in to change notification settings - Fork 3
/
App.js
24 lines (20 loc) · 767 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
24
// In App.js in a new project
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './src/Screens/HomeScreen';
import GetNews from './src/Screens/GetNews';
import WebViewComponent from './src/Components/WebView';
const Stack = createStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Trending" component={HomeScreen} />
<Stack.Screen name='GetNews' component={GetNews} />
<Stack.Screen name='WebView' component={WebViewComponent} options={{ headerShown: false }} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;