From b3919a9cdb85dc8daee3acbe3f0341c493ed0719 Mon Sep 17 00:00:00 2001 From: Artem Litchmanov Date: Tue, 10 Feb 2026 09:47:50 -0800 Subject: [PATCH] Add Android no-op stubs for iOS-only codegen props Commit 010b9de added scrollsToTop, dragInteractionEnabled, and setTintColor to the codegen spec (RNCWebViewNativeComponent.ts) but only implemented them on iOS. Codegen generates a single Java interface for all platforms, so Android fails to compile without these stubs. Co-Authored-By: Claude Opus 4.6 --- .../reactnativecommunity/webview/RNCWebViewManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/android/src/newarch/com/reactnativecommunity/webview/RNCWebViewManager.java b/android/src/newarch/com/reactnativecommunity/webview/RNCWebViewManager.java index 4709e2822..1e7c47070 100644 --- a/android/src/newarch/com/reactnativecommunity/webview/RNCWebViewManager.java +++ b/android/src/newarch/com/reactnativecommunity/webview/RNCWebViewManager.java @@ -428,6 +428,15 @@ public void setMediaCapturePermissionGrantType(RNCWebViewWrapper view, @Nullable @Override public void setFraudulentWebsiteWarningEnabled(RNCWebViewWrapper view, boolean value) {} + + @Override + public void setTintColor(RNCWebViewWrapper view, double r, double g, double b, double a) {} + + @Override + public void setScrollsToTop(RNCWebViewWrapper view, boolean value) {} + + @Override + public void setDragInteractionEnabled(RNCWebViewWrapper view, boolean value) {} /* !iOS PROPS - no implemented here */ @Override