tcomb-form-native
tcomb-form-native copied to clipboard
Validating a single field instead of complete form.
is there a way to validate single field istead of complete form ? spose there are 3 fields and every field has its own validation but i want to validate only one field when it is changed.is there a way?
You would need to know the path. The tcomb-form docs have a section about that:
https://github.com/gcanti/tcomb-form/blob/master/GUIDE.md#accessing-fields
this.refs.form.getComponent(path).validate();