title: How to change the value of a TextInput using reference in React Native?
body: <p>I am using React Native <code>0.57.8</code> and React <code>16.7.0</code>. I am creating an on-screen keyboard for Android TV which will be used as a library. I have a <code>TextInput</code> to whom I have assigned a reference. How can I use this reference to change the <code>value</code> of the <code>TextInput</code>?</p>
  
  <pre><code>constructor(props) {
    super(props);
    this.emailRef = React.createRef();
  }
  
  &lt;TextInput
    ref={this.emailRef}
    placeHolder="Email Address"
    blurOnSubmit={false}
  /&gt;
  
  &lt;Keyboard textInput={this.emailRef} /&gt;
  </code></pre>
  
  <p>Inside the library:</p>
  
  <pre><code>&lt;Button
    text="change value"
    onPress={() =&gt; {
      this.props.emailRef.current.props.value =
        this.props.emailRef.current.props.value + "q";
    }}
  /&gt;
  </code></pre>