bamlab / bamlab/react-native-formik

Setting the value doesn't work for arrays

Open
#45 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
398
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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:
```javascript
{
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.