Issue
After going through the code, it doesn't appear that the ability to override the name of a Formik field is provided (see here). It appears to be hardcoded to specific values regardless of the name prop that usually controls that mapped value.
Proposal
Allow users to override the name of any Formik Field
Issue After going through the code, it doesn't appear that the ability to override the name of a Formik field is provided (see here). It appears to be hardcoded to specific values regardless of the
name
prop that usually controls that mapped value.Proposal Allow users to override the name of any Formik Field
Example:
<Field id="myCustomCardNumber" name="myCustomCardNumber"> {({ field }) => <input {...getCardNumberProps({ onBlur: field.onBlur, onChange: field.onChange})} />}</Field>