title: ReactNative inside DialogFragment. Showing ReactNative powered ModalDialogs when app is in a BackgroundService mode
body: <p>I'm pretty new to <code>ReactNative</code> and <code>Android</code> development.</p>
  
  <p>I have some native <code>Java</code> based logic which shows <code>DialogFragment</code> on certain events while app is working in a <code>Background service</code> mode. </p>
  
  <p>My goal is to use <code>ReactNative</code> code inside <code>DialogFragment</code>, or call <code>ReactNative</code> powered view while app is in a <code>BackgroundService</code> mode.</p>
  
  <p>What would be the best strategy for that case? I can integrate <code>ReactNative</code> code inside FragmentActivity, but I haven't found any solution for integrating <code>RN</code> code inside <code>DialogFragment</code>.</p>
  
  <p>Also I could listen from <code>JavaScript</code> to certain events which are yielded by <code>Java</code> code, but I'm not sure how to show <code>ModalDialog</code> from RN, when app is not open and is in a <code>BackgroundService</code> mode. What would you suggest? Thanks.</p>