title: How to test RN component rendering inside modal & portal in react native
body: <p>I am using <a href="https://callstack.github.io/react-native-paper/" rel="nofollow noreferrer">react-native-paper</a> library as my UI component library.I am using Modal component which gets rendered inside Portal, something like below</p>
  <pre><code>&lt;Portal&gt;
     &lt;Modal visible={visible}&gt;
      ....
     &lt;/Modal&gt;
  &lt;/Portal&gt;
  </code></pre>
  <p>For writing unit test cases I am using <a href="https://www.npmjs.com/package/@testing-library/react-native" rel="nofollow noreferrer">@testing-library/react-native</a>.</p>
  <p>My question is how can I testing components rendering inside model. When I am using <strong>debug()</strong> not getting Modal node in it.</p>