bamlab / react-native-formik

Set of helpers to make form awesome with React Native and Formik
MIT License
398 stars 50 forks source link

WithNextInputAutoFocusInput Formik children is not updating #156

Open mm1221uu opened 3 years ago

mm1221uu commented 3 years ago

the issue is that the children is not updating when i dynamically add new input fields to formik,

example

<Formik>
  <FormWrap>
    <Input/>
    {condition <Input/>}
  </Formik>
  <Button>
</FormWrap>

now when i finish typing in the second field the auto focus will jump to the first field which shouldn't happen, what happen is that the children will allows be the first input, even after changing the condition to true