title: How to get text inside Text component onPress in react-native
body: <p>I want to get text inside 'Text' component 'onPress' and set it to my component's state variable. Here is my code -</p>
  
  <pre><code>var MyComponent = React.createClass({
  getInitialState: function(){
      return {   
          myStateVariable: 'New York'        
      }
  },   
  render: function(){
      return (  
          &lt;Text onPress={()=&gt;{
                 this.setState({
                     myStateVariable: 'London' // This works fine
                     myStateVariable: this.children // This is not working
                 });
               }  
          }&gt;
              London
          &lt;/Text&gt;
          &lt;Text&gt;{this.state.myStateVariable}&lt;/Text&gt;
      );
  }   
  });
  </code></pre>
  
  <p>How to get the text inside 'Text' component dynamically?</p>