import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; // ============================================================================ // 1. IMPORTAÇÃO DE OUTROS COMPONENTES // ============================================================================ // Se quiser usar outros componentes dentro desta tela, importe aqui: // import MeuBotao from './MeuBotao'; export default function OlaMundo() { return ( {/* ====================================================================== 2. ÁREA ONDE OS COMPONENTES SÃO INSERIDOS ====================================================================== */} {/* Componente de Texto simples */} Olá, Mundo! {/* Insira outros componentes aqui abaixo */} {/* Exemplo: Meu segundo texto */} {/* Exemplo: */} ); } // ============================================================================ // 3. ESTILOS DO COMPONENTE // ============================================================================ const styles = StyleSheet.create({ container: { flex: 1, // Faz a View ocupar a tela inteira justifyContent: 'center', // Centraliza os componentes na vertical alignItems: 'center', // Centraliza os componentes na horizontal backgroundColor: '#ffffff',// Cor de fundo da tela }, titulo: { fontSize: 24, fontWeight: 'bold', color: '#333333', }, });