title: React Native - setState on object inside state
body: <p>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.</p>
  
  <p>Here is code:</p>
  
  <pre><code>constructor(){
      super()
      this.state={
      Modal: {
          EduModalVisible: false,
          ProTitleModalVisible: false,
          PsychoModalityModalVisible: false,
      },
  
      User: { 
          NameOfFaculty: '',
          YearOfGraduate: '',
      }
  }
  
  }
  </code></pre>
  
  <p>And text input looks like this:</p>
  
  <pre><code>&lt;TextField label={'Faculty'} highlightColor={'#76a6ef'}
          value={this.state.User.NameOfFaculty} onChangeText={(faculty) =&gt; this.setState({User: { NameOfFaculty: faculty }})} /&gt;
  &lt;TextField label={'Year Of Graduation'} highlightColor={'#76a6ef'}
          value={this.state.User.YearOfGraduate} onChangeText={(year) =&gt; this.setState({User: { YearOfGraduate: year }})} /&gt;
  </code></pre>
  
  <p>I think that problem is in updating state of object inside state, but I'm not sure how to solve this.</p>