title: Listen for taps anywhere in a react native app
body: <p>On the web, if a component lower down in the hierarchy needs to listen for clicks anywhere on the page, it can simply add an event listener in <code>componentWillMount()</code>:</p>
  
  <pre class="lang-js prettyprint-override"><code>document.addEventListener('click', () =&gt; { ... })
  </code></pre>
  
  <p>Is there a corresponding solution in React Native? I know that I can have a top-level view listen for all press events, but I'm looking for a solution that avoids having to go through a top-level view. In the way that a component anywhere in the hierarchy can add an event listener on the <code>document</code> in web code, I'd like to do the same with a react native component.</p>