import { Link } from 'expo-router'; import { Pressable, StyleSheet, Text, TextInput, View } from 'react-native'; import { useRegister } from '@/features/auth/hooks/useRegister'; export default function RegisterScreen() { const { displayName, email, password, setDisplayName, setEmail, setPassword, submit, isSubmitting, error, } = useRegister(); return ( Registrarse {error ? {error} : null} {isSubmitting ? 'Registrando...' : 'Crear cuenta'} ¿Ya tienes cuenta? Inicia sesión ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', padding: 24, gap: 12, }, title: { fontSize: 28, fontWeight: '700', marginBottom: 16, }, input: { borderWidth: 1, borderColor: '#ccc', borderRadius: 10, paddingHorizontal: 14, paddingVertical: 12, }, button: { backgroundColor: '#1f6feb', paddingVertical: 14, borderRadius: 10, alignItems: 'center', marginTop: 8, }, buttonText: { color: '#fff', fontWeight: '600', }, error: { color: 'red', }, link: { marginTop: 12, }, });