|
@@ -994,6 +994,9 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
994
|
994
|
webView.post(new Runnable() {
|
995
|
995
|
@Override
|
996
|
996
|
public void run() {
|
|
997
|
+ if (mRNCWebViewClient == null) {
|
|
998
|
+ return;
|
|
999
|
+ }
|
997
|
1000
|
WritableMap data = mRNCWebViewClient.createWebViewEvent(webView, webView.getUrl());
|
998
|
1001
|
data.putString("data", message);
|
999
|
1002
|
dispatchEvent(webView, new TopMessageEvent(webView.getId(), data));
|