Open chiraggshah opened 8 years ago
+1
Does it work if you set the formName prop on SubmitWidget to the same used on the Form?
No, it doesn't work.
I have the same problems, even wrapped SubmitWidget
in GroupWidget
.
error messages when click wrapped SubmitWidget
is: undefined is not an object (evaluating 'this.props.form.setState')
This also occurs if you wrapped ErrorsWidget
inside other components.
It would caused by not pass props to children properly?
Im having this same issue.
I found a tricky solution ... add this :
onChangeText={(txt) => {GiftedFormManager.stores.
in the component !
Here is my code. Basically I want to have the SubmitWidget and some other component in the same line. But the values passed to onSubmit function is
{}
. It works if I move the SubmitWidget outside the view.