-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
27 lines (24 loc) · 944 Bytes
/
index.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
25
26
27
import React from 'react';
import {AppRegistry} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Home } from './components/screens/Home';
import { Buttons } from './components/screens/Buttons';
import { Article } from './components/screens/Article';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
const Stack = createNativeStackNavigator();
const App = () => {
return (
<GestureHandlerRootView>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Buttons" component={Buttons} />
<Stack.Screen name="Article" component={Article} />
</Stack.Navigator>
</NavigationContainer>
</GestureHandlerRootView>
);
};
// Module name
AppRegistry.registerComponent('App', () => App);