Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the value doesn't work for arrays #45

Open
Almouro opened this issue Dec 14, 2018 · 2 comments
Open

Setting the value doesn't work for arrays #45

Almouro opened this issue Dec 14, 2018 · 2 comments
Labels
question Further information is requested

Comments

@Almouro
Copy link
Member

Almouro commented Dec 14, 2018

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
Copy link
Member Author

Almouro commented Jan 7, 2019

@Gguigre I need to check this again with you, since #50 is passing without any changes

@Almouro Almouro added the question Further information is requested label Jan 7, 2019
@Almouro
Copy link
Member Author

Almouro commented Jan 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant