fix(android): Fixes black screen on back button press (#1298 by @michan85)

Co-authored-by: michael hancock <michael.hancock@24.com>
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
This commit is contained in:
michael hancock 2020-05-29 03:05:53 +02:00 committed by GitHub
parent b97d16c23d
commit 0317a4b4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -1234,6 +1234,21 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
destroy();
}
WebChromeClient mWebChromeClient;
@Override
public void setWebChromeClient(WebChromeClient client) {
this.mWebChromeClient = client;
super.setWebChromeClient(client);
}
@Override
public void destroy() {
if(mWebChromeClient!=null){
mWebChromeClient.onHideCustomView();
}
super.destroy();
}
protected class RNCWebViewBridge {
RNCWebView mContext;