React Native - setState on object inside state
问题 I have two text inputs on modal screen, when I'm filling first input - state is updated, and when I jump on second input and start typing - value of the first input is empty. Here is code: constructor(){ super() this.state={ Modal: { EduModalVisible: false, ProTitleModalVisible: false, PsychoModalityModalVisible: false, }, User: { NameOfFaculty: '', YearOfGraduate: '', } } } And text input looks like this: <TextField label={'Faculty'} highlightColor={'#76a6ef'} value={this.state.User