React Native onActivityResult not work
<p>I have a webview component of React Native. The webview should support input type is file, so I do it as:</p>

<p><a href="https://stackoverflow.com/questions/5907369/file-upload-in-webview">File Upload in WebView</a></p>

<p>and the webview implements ActivityEventListener and override onActivityResult.But the onActivityResult not working.</p>

<p>The Code is </p>

<pre><code>class RNWebView extends WebView implements ActivityEventListener {
      protected class GeoWebChromeClient extends WebChromeClient {
          public boolean onShowFileChooser(WebView webView, ValueCallback&lt;Uri[]&gt; filePathCallback, FileChooserParams fileChooserParams) {
           ...
            mActivity.startActivityForResult(chooserIntent, INPUT_FILE_REQUEST_CODE);
            return true;
          }
      }

    public RNWebView(ReactContext reactContext, Activity activity) {
        super(reactContext);
        // Add the listener for `onActivityResult`
        reactContext.addActivityEventListener(this);
        ...
     }

@Override
public void onActivityResult(final int requestCode, final int resultCode, final Intent intent) {
    // Your logic here
    Log.d("Tanck", "requestCode:" + requestCode + "----" + "resultCode:" + resultCode);
}

}
</code></pre>