Browse Source

Initial login/register screens

master
GabrielTrettel 4 years ago
parent
commit
b51dc79d11
  1. 23
      src/app/navigation/AuthNavigator.js
  2. 18
      src/app/screens/LoginScreen.js
  3. 20
      src/app/screens/RegisterScreen.js

23
src/app/navigation/AuthNavigator.js

@ -0,0 +1,23 @@
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import LoginScreen from "../screens/LoginScreen";
import RegisterScreen from "../screens/RegisterScreen";
const Stack = createStackNavigator();
const AuthNavigator = () => (
<Stack.Navigator>
<Stack.Screen
name="Login"
component={LoginScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Register"
component={RegisterScreen}
options={{ headerShown: false }}
/>
</Stack.Navigator>
);
export default AuthNavigator;

18
src/app/screens/LoginScreen.js

@ -0,0 +1,18 @@
import React from "react";
import { StyleSheet, View, Text } from "react-native";
export default function LoginScreen() {
return (
<View style={styles.containter}>
<Text>Login</Text>
</View>
);
}
const styles = StyleSheet.create({
containter: {
flex: 1,
justifyContent: "center",
alignItems: "center",
},
});

20
src/app/screens/RegisterScreen.js

@ -0,0 +1,20 @@
import React from "react";
import { StyleSheet, View, Text } from "react-native";
export default function RegisterScreen() {
// TODO: Implement this screen as needed
return (
<View style={styles.containter}>
<Text>Registro</Text>
</View>
);
}
const styles = StyleSheet.create({
containter: {
flex: 1,
justifyContent: "center",
alignItems: "center",
},
});
Loading…
Cancel
Save