0

I have already set a default value in a text box

<TextInput style={styles.textName} defaultValue={array.name} onChangeText={(name)=>this.setState({name})}/>

It's a part of a form that I created the form is already filled with default values the user can edit only the he/she wants and when he submits the form all the data will be added to another array. But with the current code only the text boxes that user edit will be added to the new array because of onChangeText. How can I get the text in the text box without onChangeText

Goskula Jayachandra
  • 3,931
  • 2
  • 12
  • 22

0 Answers0