import React from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import { Splash } from '../lotties/Splash';
import Login from '../screens/Login';
import AuthRoutes from './tab.routes';
import Pessoas from '../screens/Pessoas';
import NovaPessoa from '../screens/NovaPessoa';
import HomeIgreja from '../screens/HomeIgreja';
import Home from '../screens/Home';
import Tarefas from '../screens/Tarefas';
import NovaTarefa from '../screens/NovaTarefa';

const Stack = createNativeStackNavigator();

function StackNavigator(){
    return (
        <Stack.Navigator screenOptions={{headerShown: false}}>
            <Stack.Screen name="Login" component={Login} />
            <Stack.Screen name="HomeIgreja" component={AuthRoutes} />
            <Stack.Screen name="Home" component={Home} />
            <Stack.Screen name="Pessoas" component={Pessoas} />
            <Stack.Screen name="NovaPessoa" component={NovaPessoa} />
            <Stack.Screen name="Splash" component={Splash} />
            <Stack.Screen name="HomeInicio" component={Home} />
            <Stack.Screen name="Tarefas" component={Tarefas} />
            <Stack.Screen name="NovaTarefas" component={NovaTarefa} />
            
            
        </Stack.Navigator>
    )
}

function AppRoutes(){
    return(
        <NavigationContainer>
            <StackNavigator />
        </NavigationContainer>
    )
}
export default AppRoutes;