import type { ReactElement, ReactNode } from 'react'; import React, { useMemo } from 'react'; import type { StyleProp, ViewProps, ViewStyle, TextStyle } from 'react-native'; import { StyleSheet } from 'react-native'; import { Box, useTheme } from '@hero-design/rn'; import { generateBorderStyle, generateMarginStyle } from './utils'; interface FormGroupProps extends ViewProps { /** * The children of the FormGroup. In order for the group styling to work, * they must be either HD form components (TextInput, Select, Pickers,...) or enhanced HD input components * that supports the corresponding interface. * * Example: * const EnhancedTextInput = (props: TextInputProps) => { * return ; * }; * * *