You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Formik docs say that Formik is 100% compatible with React Native, but this is slightly untrue if you're using TypeScript. Formik's functions don't accept React Native's event type NativeSyntheticEvent, and the structure of the event is also slightly different and the value of the change is stored elsewhere, so I'm not even sure if Formik supports NativeSyntheticEvent. Because of this I have to convert my event to ChangeEvents before I can pass them to Formik's functions.
Current Behavior
NativeSyntheticEvent not supported.
Desired Behavior
NativeSyntheticEvent to be supported
Suggested Solution
Have all Formik functions that accept an event also be able to accept and handle NativeSyntheticEvent
Who does this impact? Who is this for?
This impacts developers who use Formik with Typescript+React Native
Describe alternatives you've considered
Current alternative is to convert the NativeSyntheticEvent to a ChangeEvent before passing it to the Formik function
The text was updated successfully, but these errors were encountered:
Feature request
The Formik docs say that Formik is 100% compatible with React Native, but this is slightly untrue if you're using TypeScript. Formik's functions don't accept React Native's event type
NativeSyntheticEvent
, and the structure of the event is also slightly different and the value of the change is stored elsewhere, so I'm not even sure if Formik supportsNativeSyntheticEvent
. Because of this I have to convert my event toChangeEvent
s before I can pass them to Formik's functions.Current Behavior
NativeSyntheticEvent
not supported.Desired Behavior
NativeSyntheticEvent
to be supportedSuggested Solution
Have all Formik functions that accept an event also be able to accept and handle
NativeSyntheticEvent
Who does this impact? Who is this for?
This impacts developers who use Formik with Typescript+React Native
Describe alternatives you've considered
Current alternative is to convert the
NativeSyntheticEvent
to aChangeEvent
before passing it to the Formik functionThe text was updated successfully, but these errors were encountered: