react-final-form
react-final-form copied to clipboard
v7.0.0 break types for React Native
Now, types like FieldRenderProps and FieldInputProps depends on HTMLElement, what is not available when using pure React Native (without react-native-web):
interface FieldRenderProps<FieldValue = any, T extends HTMLElement = HTMLElement, _FormValues = any>
And
interface FieldInputProps<FieldValue = any, T extends HTMLElement = HTMLElement>
Also, other types like FieldMetaState does not exists anymore, my workaround is:
type FieldMetaState<FieldValue> = FieldRenderProps<FieldValue>['meta'];