-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (23 loc) · 891 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
25
26
27
import React from 'react';
import { SafeAreaView } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import TelaA from './src/views/TelaA';
import TelaB from './src/views/TelaB';
import TelaC from './src/views/TelaC';
const Stack = createNativeStackNavigator()
export default props => {
return (
<SafeAreaView style={{flex: 1}}>
<NavigationContainer>
<Stack.Navigator initialRouteName="TelaA">
<Stack.Screen name="TelaA"
component={TelaA}
options={{title: 'Tela A'}}/>
<Stack.Screen name="TelaB" component={TelaB}></Stack.Screen>
<Stack.Screen name="TelaC" component={TelaC}></Stack.Screen>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
)
}