title: Communicate With React Js from Android Webview
body: <p>How to send data from android webview to React Js? I know to send data from React js to Android is pretty straight forward. However, I need to read data in React Js that I am passing via webview. For example, I sent an event say: <code>webview.loadUrl(&quot;javascript:sayHello('Hello From Android')&quot;)</code>
  and in React js I want to be able to get that data from sayHello function. I tried this inside the jsx:</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
          {`
            ${function sayHello(data) {
              alert(data);
            }}
          `}
  &lt;/script&gt;
  </code></pre>