title: adding ReactJS in android Webview
body: <p>I am developing an Android native application with <code>WebView</code>. I have used an HTML file to load the <code>WebView</code> and given functionality to the UI elements through javascript by enabling Javascript and adding a Javascript interface.</p>
  
  <pre><code>WebView myWeb=(WebView)findViewById(R.id.webView1);
      myWeb.getSettings().setJavaScriptEnabled(true);
      myWeb.getSettings().setLoadWithOverviewMode(true);
      myWeb.loadUrl("file:///android_asset/webview.html");
  
      myWeb.addJavascriptInterface(new Object()
      {
          @JavascriptInterface          
          public void recognizeIt(String message)
          {
  
              Toast.makeText(WebViewActivity.this, message,
                      Toast.LENGTH_LONG).show();
              Intent Intent = new Intent(WebViewActivity.this, StartActivity.class);
              startActivity(Intent);
          }
      }, "Android");    
  </code></pre>
  
  <p>below is my html file.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
      &lt;head&gt;
            &lt;script type="text/javascript"&gt;
                  function shareIt(toast) {
                     var uname=document.getElementById("message").value;
                     Android.recognizeIt(uname);
  
                  }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;label id="username"&gt;&lt;b&gt;Username&lt;/b&gt;&lt;/label&gt;
          &lt;input type="text" placeholder="Enter Username" name="uname" required id="message"&gt;
          &lt;button type="button" onclick="shareIt('message')"&gt; SEND &lt;/button&gt;
  
  
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now instead of html file, I want to use ReactJS to create UI screens in my app. I tried to search for the same but did not find any samples. I would be very grateful if someone could help / guide me here.</p>