react-native-formik icon indicating copy to clipboard operation
react-native-formik copied to clipboard

Setting the value doesn't work for arrays

Open Almouro opened this issue 5 years ago • 2 comments

If my form state has a value, that is an array: [this] https://github.com/bamlab/react-native-formik/blob/master/src/makeReactNativeField.js#L9 fails

Say the form is like:

{
  arrayValue: [
    { name: "Hello" }
  ]
}

Indeed you would set name=arrayValue.${i}.name on the input and lodash is not getting by path

Ping @Gguigre if you want to add more details

Almouro avatar Dec 14 '18 10:12 Almouro

@Gguigre I need to check this again with you, since https://github.com/bamlab/react-native-formik/pull/50 is passing without any changes

Almouro avatar Jan 07 '19 17:01 Almouro

@Gguigre could you provide some more details on this issue, especially an example on how to reproduce?

Almouro avatar Jan 28 '19 18:01 Almouro