-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
32 lines (27 loc) · 1.01 KB
/
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
28
29
30
31
32
import { StyleSheet, View, Image,Text } from 'react-native';
import { Button } from 'react-native-elements/dist/buttons/Button';
import { Input } from 'react-native-elements/dist/input/Input';
import {useState} from "react";
import { createStackNavigator } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import Login from './screens/Login';
import Principal from './screens/Principal';
import { getHeaderTitle } from '@react-navigation/elements';
const Stack = createStackNavigator();
function MyStack(navigation,back) {
return (
<Stack.Navigator>
<Stack.Group screenOptions={{ headerStyle: { backgroundColor: 'orange' } }} >
<Stack.Screen name="Login" component={Login} options={{title: '',}} />
<Stack.Screen name="Principal" component={Principal} options={''}/>
</Stack.Group>
</Stack.Navigator>
);
}
export default function App() {
return (
<NavigationContainer>
<MyStack />
</NavigationContainer>
);
};