Description
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 supports NativeSyntheticEvent
. Because of this I have to convert my event to ChangeEvent
s 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