title: Programmatically Restart a React Native App
body: <p>Is it possible to programmatically restart a React Native app without writing any native code? </p>
  
  <p>For instance, I know from the answer to <a href="https://stackoverflow.com/questions/15564614/how-to-restart-an-android-application-programmatically">this question</a> that I can restart an Android app with:</p>
  
  <pre><code>Intent i = getBaseContext().getPackageManager()
           .getLaunchIntentForPackage( getBaseContext().getPackageName() );
  i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  startActivity(i);
  </code></pre>
  
  <p>Can I do the same with React Native?</p>