Closed micabe closed 4 years ago
no worries, i used it like this
render={({ children, actionLabel }) => {
const { errors, submitForm } = useFormikContext()
return (
<Background>
{children}
<Button onPress={submitForm} title="Submit">
{actionLabel}
</Button>
</Background>
)
}}
See this for reference: https://github.com/zaguiini/formik-wizard#usage-with-react-native
see line https://github.com/zaguiini/formik-wizard/blob/master/src/index.tsx#L111
if we remove
Form
then submit hook will never be called..