Browse Source

Merge pull request #46 from maxammann/patch-1

Fix compilation by renaming a class usage
Thibault Malbranche 6 years ago
parent
commit
ca0e50e91b
No account linked to committer's email address

+ 2
- 2
android/src/main/java/com/reactnativecommunity/webview/RCTWebViewManager.java View File

@@ -652,7 +652,7 @@ public class RCTWebViewManager extends SimpleViewManager<WebView> {
652 652
         break;
653 653
       case COMMAND_POST_MESSAGE:
654 654
         try {
655
-          ReactWebView reactWebView = (ReactWebView) root;
655
+          RCTWebView reactWebView = (RCTWebView) root;
656 656
           JSONObject eventInitDict = new JSONObject();
657 657
           eventInitDict.put("data", args.getString(0));
658 658
           reactWebView.evaluateJavascriptWithFallback("(function () {" +
@@ -671,7 +671,7 @@ public class RCTWebViewManager extends SimpleViewManager<WebView> {
671 671
         }
672 672
         break;
673 673
       case COMMAND_INJECT_JAVASCRIPT:
674
-        ReactWebView reactWebView = (ReactWebView) root;
674
+        RCTWebView reactWebView = (RCTWebView) root;
675 675
         reactWebView.evaluateJavascriptWithFallback(args.getString(0));
676 676
         break;
677 677
     }