Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fase 3 foco educação precose de linguagem de programação escolar para futuros gênios #124

Open
felipeliliti opened this issue May 17, 2024 · 1 comment

Comments

@felipeliliti
Copy link

// Importando os módulos necessários
import React from 'react';
import { View, Text, Button } from 'react-native';

// Componente da página inicial
function HomeScreen({ navigation }) {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
Bem-vindo ao EduConnect!
<Button
title="Ir para a página de aulas"
onPress={() => navigation.navigate('Aulas')}
/>

);
}

// Componente da página de aulas
function AulasScreen() {
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
Aulas

);
}

// Configuração do navegador
const Stack = createStackNavigator();

function App() {
return (

<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={HomeScreen} options={{ title: 'Início' }} />
<Stack.Screen name="Aulas" component={AulasScreen} />
</Stack.Navigator>

);
}

export default App;

@felipeliliti
Copy link
Author

Bora trabalhar pessoal. Kkk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant