react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

v7.0.0 break types for React Native

Open douglasjunior opened this issue 5 months ago • 0 comments

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'];

douglasjunior avatar Jul 23 '25 16:07 douglasjunior