import React, { forwardRef, useCallback } from 'react'; import { getWebProps } from 'react-native-unistyles/web'; import { formStyles } from './Form.styles'; import { FormContext } from './FormContext'; import useMergeRefs from '../hooks/useMergeRefs'; import type { FormProps } from './types'; import type { IdealystElement } from '../utils/refTypes'; /** * Form component for managing form state and validation. * Wraps children in a context provider and renders a semantic