title: How to get the text of textinput in react native?
body: <p>How to write this statment, like in ios, in React syntax:</p>
  
  <pre><code>txt1.text = label.text 
  </code></pre>
  
  <p>I tried a lot but failed. </p>
  
  <pre><code>import React, { Component } from 'react';
  import { View, Text, Button, TextInput } from 'react-native';
  
  export default class App extends Component {
  state = {
  TextInputValue: '',
    };
  
  onPress = () =&gt; {
  this.setState({
    //textValue.Text: TextInputValue,
    //newText: textValue
  });
    };
  
  render() {
  return (
    &lt;View style={{ paddingTop: 25 }}&gt;
  
      &lt;TextInput
        style={{ height: 40 }}
        placeholder="Type here to! Translate"
        onChangeText={TextInputValue =&gt; this.setState({ TextInputValue })}
      /&gt;
      &lt;Button title="Change Text" onPress={this.onPress} 
      /&gt;
  
      &lt;Text&gt;
        {this.state.newText}
      &lt;/Text&gt;
    &lt;/View&gt;
  );
  }
   }
  </code></pre>
  
  <p>When the button is pressed, I want to get the text of <code>textinput</code> and display it on Text (Label)</p>