fix(android): Fix ClassCastException when doing native things(#987)

This commit is contained in:
Nikhil Chitlur Navakiran 2019-11-13 02:36:08 -07:00 committed by Thibault Malbranche
parent 9dff31258d
commit 7e68da4ffe
1 changed files with 3 additions and 1 deletions

View File

@ -1020,8 +1020,10 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
@Override
public void setWebViewClient(WebViewClient client) {
super.setWebViewClient(client);
if (client instanceof RNCWebViewClient) {
mRNCWebViewClient = (RNCWebViewClient) client;
}
}
public @Nullable
RNCWebViewClient getRNCWebViewClient() {