|
@ -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; |