title: onclick function is not working in react native application
body: <p>I'm new to react native. I wrote the following code to call a function, if a user clicks on a text.</p>
  
  <pre><code>var login = React.createClass({
       openPopup: function(){
          console.log("function called");
       },
       render: function(){
          return (
             &lt;View onClick={this.openPopup}&gt;
                &lt;Text&gt;
                   Login
                &lt;/Text&gt;
             &lt;/View&gt;
          );
       }
  });
  </code></pre>
  
  <p>Is there anything wrong in the above code? If I click the login text, I'm not getting any feedback in the console.</p>
  
  <p><strong>EDIT</strong>
  This question is react native specific. Not a duplicate of any other question in Stack Overflow.</p>