title: React Native : how to change view on onPress event
body: <p>i have a button on my first rendered View ( the default View ) , i want to change the View when the user press that button .</p>
  
  <p>i know how to use the <code>onPress</code> event but i dont know how should i change the whole View ? im creating another <code>react.createClass</code> which has the new render and other stuffs in it but i dont know how should i use it for the <code>View</code> to be Changed .</p>
  
  <p>here is my first View ( the Main one ) ( by the way the application name is sess ):</p>
  
  <pre><code>var sess = React.createClass({
    render(){
      return(
  
        &lt;View&gt;
          &lt;Button&gt; change view &lt;/Button&gt;  //onPress is gonna be here
        &lt;/View&gt;
      );
    },
  });
  </code></pre>
  
  <p>and i want the View to be changed to this :</p>
  
  <pre><code>var newView = React.createClass({
    render(){
      return(
  
        &lt;View&gt;
          &lt;Text&gt; the View is now changed &lt;/Text&gt;
        &lt;/View&gt;
      );
    },
  });
  </code></pre>