Tcomb-form-native: How check if form or component is valid without show the errors on screen?

Created on 6 Dec 2017  路  1Comment  路  Source: gcanti/tcomb-form-native

  • tcomb-form-native v0.6.11
  • react-native v0.49.5

Have any "api" to check if have errors in the form or in the component, without show the errors on screen? like this:
this.refForm.isValid() === true
this.refForm.getComponent(path).isValid() === true

thanks

Most helpful comment

ah, with pureValidate() is possible:

this.refForm.pureValidate().isValid() === true
this.refForm.getComponent(path).pureValidate().isValid() === true

>All comments

ah, with pureValidate() is possible:

this.refForm.pureValidate().isValid() === true
this.refForm.getComponent(path).pureValidate().isValid() === true

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sibelius picture sibelius  路  5Comments

flyingace picture flyingace  路  5Comments

ilyadoroshin picture ilyadoroshin  路  4Comments

pgmemk picture pgmemk  路  4Comments

sibelius picture sibelius  路  4Comments