import { StyleSheet, Text, TextInput, View, type TextInputProps, } from "react-native"; import { useAppTheme } from "@/contexts/ThemeContext"; import { fonts, radii, spacing } from "@/constants/theme"; type InputProps = TextInputProps & { label: string; error?: string; required?: boolean; }; export function Input({ label, error, required, style, ...props }: InputProps) { const { colors } = useAppTheme(); return ( {label} {required ? * : null} {error ? {error} : null} ); } const styles = StyleSheet.create({ wrapper: { gap: spacing.sm, }, label: { fontSize: 14, fontFamily: fonts.bodyMedium, }, input: { minHeight: 40, borderWidth: 1, borderRadius: radii.md, paddingHorizontal: spacing.md, fontSize: 14, fontFamily: fonts.body, }, error: { fontSize: 13, fontFamily: fonts.body, }, });