import React from 'react'; import { Text, View } from 'react-native'; import { FieldErrorsProps } from './types'; export const FieldErrors = ({ errors, errorStyle, style, }: FieldErrorsProps): JSX.Element | null => { if (!errors || !errors.length) { return null; } return ( {errors.map((error) => ( {error} ))} ); };