Skip to content

v7.0.0 break types for React Native #1051

@douglasjunior

Description

@douglasjunior

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions