How to set state from tcomb-form-native from values

216 Views Asked by At

I am trying to set values to state after submitting the form in tcomb-form-native .. I am new to react native Find the code in the image Check The Code Here

1

There are 1 best solutions below

0
Masuk Helal Anik On

First set your states in the constructor in this way and remove the onChange. I think it may work

this.state = { value:{ username:' ', password:' ', organization:' ' }