title: How to use onPress on a custom component?
body: <p>Let's assume I have this custom component:</p>
  
  <pre><code>export default class Button extends Component {
    render(){
      return(
        &lt;TouchOpacity&gt;
          &lt;Text&gt; Button &lt;/Text&gt;
        &lt;/TouchOpacity&gt;
      )
    }
  }
  </code></pre>
  
  <p>And I use it in a parent component like this :</p>
  
  <pre><code>export default class MainPage extends Component {
    render(){
      return(
        &lt;Button onPress={ this.doSomething }&gt;&lt;/Button&gt;
      )
    }
  }
  </code></pre>
  
  <p>For some reason (unknown to me at least) this onPress even won't happen.
  I'm pretty new to react-native btw. I believe I must find a way to enable this kind of event handling. </p>
  
  <p>Is it possible  to get a small example how to achieve that based on my examples above ?</p>