title: Capturing click from included component in react-native?
body: <p>I am trying to use 'react-native-popup-dialog' to include pop ups in my react-native app.</p>
  <p>I have a component 'HeaderView' which I am including in all other components for example 'Home' as</p>
  <pre><code>&lt;HeaderView/&gt;.
  </code></pre>
  <p>For 'HeaderView' component I have set flex to 0.5 and there is a button whose onpress event I want to capture in 'Home' component.</p>
  <pre><code>onPress={() =&gt; {
              this.popupDialog.show();
  }}
  </code></pre>
  <p>And PopupDialog exists in 'Home' Component.
  If I include PopupDialog  in HeaderView, I get popup only in 0.5 (flex) part of screen.</p>
  <p>Is there any way to achieve this or will I have to discard my HeaderView component and add its logic in all components?</p>