From 3d8e9a7e3e18ff42cfb81ba7b9065cfc0b6f20a5 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 10 Jan 2025 11:50:49 -0800 Subject: [PATCH] [skip ci] Refactor ViewManager codegen to use new ViewManagerInterface (#48549) Summary: Refactor ViewManager codegen to use new ViewManagerInterface changelog: [internal] internal Reviewed By: javache Differential Revision: D67957884 --- .../GeneratePropsJavaInterface-test.js.snap | 54 +++++++---- .../components/GeneratePropsJavaInterface.js | 2 +- .../src/generators/components/JavaHelpers.js | 6 ++ .../GeneratePropsJavaInterface-test.js.snap | 90 ++++++++++++------- .../ReactAndroid/api/ReactAndroid.api | 20 ++--- 5 files changed, 113 insertions(+), 59 deletions(-) diff --git a/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsJavaInterface-test.js.snap b/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsJavaInterface-test.js.snap index 1c3b62895ff6fa..119131c790b5a5 100644 --- a/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsJavaInterface-test.js.snap +++ b/packages/react-native-codegen/e2e/__tests__/components/__snapshots__/GeneratePropsJavaInterface-test.js.snap @@ -16,8 +16,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ArrayPropsNativeComponentViewManagerInterface { +public interface ArrayPropsNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setNames(T view, @Nullable ReadableArray value); void setDisableds(T view, @Nullable ReadableArray value); void setProgress(T view, @Nullable ReadableArray value); @@ -50,8 +51,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface BooleanPropNativeComponentViewManagerInterface { +public interface BooleanPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); void setDisabledNullable(T view, @Nullable Boolean value); } @@ -74,8 +76,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ColorPropNativeComponentViewManagerInterface { +public interface ColorPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setTintColor(T view, @Nullable Integer value); } ", @@ -97,9 +100,10 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; import com.facebook.yoga.YogaValue; -public interface DimensionPropNativeComponentViewManagerInterface { +public interface DimensionPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setMarginBack(T view, @Nullable YogaValue value); } ", @@ -120,8 +124,9 @@ Object { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface EdgeInsetsPropNativeComponentViewManagerInterface { +public interface EdgeInsetsPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { // No props } ", @@ -143,8 +148,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface EnumPropNativeComponentViewManagerInterface { +public interface EnumPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setAlignment(T view, @Nullable String value); void setIntervals(T view, @Nullable Integer value); } @@ -166,8 +172,9 @@ Object { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface EventNestedObjectPropsNativeComponentViewManagerInterface { +public interface EventNestedObjectPropsNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -188,8 +195,9 @@ Object { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface EventPropsNativeComponentViewManagerInterface { +public interface EventPropsNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -211,8 +219,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface FloatPropsNativeComponentViewManagerInterface { +public interface FloatPropsNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setBlurRadius(T view, float value); void setBlurRadius2(T view, float value); void setBlurRadius3(T view, float value); @@ -241,8 +250,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ImagePropNativeComponentViewManagerInterface { +public interface ImagePropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setThumbImage(T view, @Nullable ReadableMap value); } ", @@ -263,8 +273,9 @@ Object { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface IntegerPropNativeComponentViewManagerInterface { +public interface IntegerPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setProgress1(T view, int value); void setProgress2(T view, int value); void setProgress3(T view, int value); @@ -288,8 +299,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface InterfaceOnlyNativeComponentViewManagerInterface { +public interface InterfaceOnlyNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setTitle(T view, @Nullable String value); } ", @@ -311,8 +323,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import com.facebook.react.bridge.Dynamic; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MixedPropNativeComponentViewManagerInterface { +public interface MixedPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setMixedProp(T view, Dynamic value); } ", @@ -335,8 +348,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MultiNativePropNativeComponentViewManagerInterface { +public interface MultiNativePropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setThumbImage(T view, @Nullable ReadableMap value); void setColor(T view, @Nullable Integer value); void setThumbTintColor(T view, @Nullable Integer value); @@ -360,8 +374,9 @@ Object { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface NoPropsNoEventsNativeComponentViewManagerInterface { +public interface NoPropsNoEventsNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { // No props } ", @@ -384,8 +399,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ObjectPropsNativeComponentManagerInterface { +public interface ObjectPropsNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setObjectProp(T view, @Nullable ReadableMap value); void setObjectArrayProp(T view, @Nullable ReadableMap value); void setObjectPrimitiveRequiredProp(T view, @Nullable ReadableMap value); @@ -410,8 +426,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface PointPropNativeComponentViewManagerInterface { +public interface PointPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setStartPoint(T view, @Nullable ReadableMap value); } ", @@ -433,8 +450,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface StringPropNativeComponentViewManagerInterface { +public interface StringPropNativeComponentViewManagerInterface extends ViewManagerWithGeneratedInterface { void setPlaceholder(T view, @Nullable String value); void setDefaultValue(T view, @Nullable String value); } diff --git a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js index 28888b203e245b..66ab2267d84fdd 100644 --- a/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js +++ b/packages/react-native-codegen/src/generators/components/GeneratePropsJavaInterface.js @@ -52,7 +52,7 @@ package ${packageName}; ${imports} -public interface ${className} { +public interface ${className} extends ViewManagerWithGeneratedInterface { ${methods} } `; diff --git a/packages/react-native-codegen/src/generators/components/JavaHelpers.js b/packages/react-native-codegen/src/generators/components/JavaHelpers.js index b0db82ffdc7102..90166b9a24dc14 100644 --- a/packages/react-native-codegen/src/generators/components/JavaHelpers.js +++ b/packages/react-native-codegen/src/generators/components/JavaHelpers.js @@ -43,6 +43,12 @@ function getImports( ): Set { const imports: Set = new Set(); + if (type === 'interface') { + imports.add( + 'import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;', + ); + } + component.extendsProps.forEach(extendProps => { switch (extendProps.type) { case 'ReactNativeBuiltInType': diff --git a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap index e4b9e073a63fea..8b37ffd2df9f0c 100644 --- a/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap +++ b/packages/react-native-codegen/src/generators/components/__tests__/__snapshots__/GeneratePropsJavaInterface-test.js.snap @@ -16,8 +16,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ArrayPropsNativeComponentManagerInterface { +public interface ArrayPropsNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setNames(T view, @Nullable ReadableArray value); void setDisableds(T view, @Nullable ReadableArray value); void setProgress(T view, @Nullable ReadableArray value); @@ -51,8 +52,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ArrayPropsNativeComponentManagerInterface { +public interface ArrayPropsNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setNativePrimitives(T view, @Nullable ReadableArray value); } ", @@ -73,8 +75,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface BooleanPropNativeComponentManagerInterface { +public interface BooleanPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -96,8 +99,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ColorPropNativeComponentManagerInterface { +public interface ColorPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setTintColor(T view, @Nullable Integer value); } ", @@ -119,8 +123,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface CommandNativeComponentManagerInterface { +public interface CommandNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { // No props void flashScrollIndicators(T view); void allTypes(T view, int x, float y, double z, String message, boolean animated, ReadableArray locations); @@ -145,8 +150,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface CommandNativeComponentManagerInterface { +public interface CommandNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setAccessibilityHint(T view, @Nullable String value); void handleRootTag(T view, double rootTag); void hotspotUpdate(T view, int x, int y); @@ -171,9 +177,10 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; import com.facebook.yoga.YogaValue; -public interface DimensionPropNativeComponentManagerInterface { +public interface DimensionPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setMarginBack(T view, @Nullable YogaValue value); } ", @@ -194,8 +201,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface DoublePropNativeComponentManagerInterface { +public interface DoublePropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setBlurRadius(T view, double value); void setBlurRadius2(T view, double value); void setBlurRadius3(T view, double value); @@ -221,8 +229,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface EventsNestedObjectNativeComponentManagerInterface { +public interface EventsNestedObjectNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -243,8 +252,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface EventsNativeComponentManagerInterface { +public interface EventsNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -265,8 +275,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface InterfaceOnlyComponentManagerInterface { +public interface InterfaceOnlyComponentManagerInterface extends ViewManagerWithGeneratedInterface { // No props } ", @@ -291,8 +302,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ExcludedIosComponentManagerInterface { +public interface ExcludedIosComponentManagerInterface extends ViewManagerWithGeneratedInterface { // No props } ", @@ -308,8 +320,9 @@ public interface ExcludedIosComponentManagerInterface { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MultiFileIncludedNativeComponentManagerInterface { +public interface MultiFileIncludedNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -330,8 +343,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface FloatPropNativeComponentManagerInterface { +public interface FloatPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setBlurRadius(T view, float value); void setBlurRadius2(T view, float value); void setBlurRadius3(T view, float value); @@ -359,8 +373,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ImagePropNativeComponentManagerInterface { +public interface ImagePropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setThumbImage(T view, @Nullable ReadableMap value); } ", @@ -383,8 +398,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface InsetsPropNativeComponentManagerInterface { +public interface InsetsPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setContentInset(T view, @Nullable ReadableMap value); } ", @@ -406,8 +422,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface Int32EnumPropsNativeComponentManagerInterface { +public interface Int32EnumPropsNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setMaxInterval(T view, @Nullable Integer value); } ", @@ -428,8 +445,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface IntegerPropNativeComponentManagerInterface { +public interface IntegerPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setProgress1(T view, int value); void setProgress2(T view, int value); void setProgress3(T view, int value); @@ -453,8 +471,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface InterfaceOnlyComponentManagerInterface { +public interface InterfaceOnlyComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setAccessibilityHint(T view, @Nullable String value); } ", @@ -476,8 +495,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import com.facebook.react.bridge.Dynamic; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MixedPropNativeComponentManagerInterface { +public interface MixedPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setMixedProp(T view, Dynamic value); } ", @@ -500,8 +520,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ImageColorPropNativeComponentManagerInterface { +public interface ImageColorPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setThumbImage(T view, @Nullable ReadableMap value); void setColor(T view, @Nullable Integer value); void setThumbTintColor(T view, @Nullable Integer value); @@ -525,8 +546,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface NoPropsNoEventsComponentManagerInterface { +public interface NoPropsNoEventsComponentManagerInterface extends ViewManagerWithGeneratedInterface { // No props } ", @@ -549,8 +571,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface ObjectPropsManagerInterface { +public interface ObjectPropsManagerInterface extends ViewManagerWithGeneratedInterface { void setObjectProp(T view, @Nullable ReadableMap value); } ", @@ -573,8 +596,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface PointPropNativeComponentManagerInterface { +public interface PointPropNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setStartPoint(T view, @Nullable ReadableMap value); } ", @@ -596,8 +620,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface StringEnumPropsNativeComponentManagerInterface { +public interface StringEnumPropsNativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setAlignment(T view, @Nullable String value); } ", @@ -619,8 +644,9 @@ package com.facebook.react.viewmanagers; import android.view.View; import androidx.annotation.Nullable; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface StringPropComponentManagerInterface { +public interface StringPropComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setAccessibilityHint(T view, @Nullable String value); void setAccessibilityRole(T view, @Nullable String value); } @@ -642,8 +668,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MultiFile1NativeComponentManagerInterface { +public interface MultiFile1NativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -659,8 +686,9 @@ public interface MultiFile1NativeComponentManagerInterface { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MultiFile2NativeComponentManagerInterface { +public interface MultiFile2NativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -681,8 +709,9 @@ Map { package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MultiComponent1NativeComponentManagerInterface { +public interface MultiComponent1NativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", @@ -698,8 +727,9 @@ public interface MultiComponent1NativeComponentManagerInterface package com.facebook.react.viewmanagers; import android.view.View; +import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface; -public interface MultiComponent2NativeComponentManagerInterface { +public interface MultiComponent2NativeComponentManagerInterface extends ViewManagerWithGeneratedInterface { void setDisabled(T view, boolean value); } ", diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index d9539ba809ce87..26d6ca721334b8 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -6072,7 +6072,7 @@ public class com/facebook/react/viewmanagers/ActivityIndicatorViewManagerDelegat public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/ActivityIndicatorViewManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/ActivityIndicatorViewManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setAnimating (Landroid/view/View;Z)V public abstract fun setColor (Landroid/view/View;Ljava/lang/Integer;)V public abstract fun setHidesWhenStopped (Landroid/view/View;Z)V @@ -6085,7 +6085,7 @@ public class com/facebook/react/viewmanagers/AndroidDrawerLayoutManagerDelegate public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/AndroidDrawerLayoutManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/AndroidDrawerLayoutManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun closeDrawer (Landroid/view/View;)V public abstract fun openDrawer (Landroid/view/View;)V public abstract fun setDrawerBackgroundColor (Landroid/view/View;Ljava/lang/Integer;)V @@ -6101,7 +6101,7 @@ public class com/facebook/react/viewmanagers/AndroidHorizontalScrollContentViewM public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/AndroidHorizontalScrollContentViewManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/AndroidHorizontalScrollContentViewManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setRemoveClippedSubviews (Landroid/view/View;Z)V } @@ -6110,7 +6110,7 @@ public class com/facebook/react/viewmanagers/AndroidProgressBarManagerDelegate : public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/AndroidProgressBarManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/AndroidProgressBarManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setAnimating (Landroid/view/View;Z)V public abstract fun setColor (Landroid/view/View;Ljava/lang/Integer;)V public abstract fun setIndeterminate (Landroid/view/View;Z)V @@ -6126,7 +6126,7 @@ public class com/facebook/react/viewmanagers/AndroidSwipeRefreshLayoutManagerDel public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/AndroidSwipeRefreshLayoutManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/AndroidSwipeRefreshLayoutManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setColors (Landroid/view/View;Lcom/facebook/react/bridge/ReadableArray;)V public abstract fun setEnabled (Landroid/view/View;Z)V public abstract fun setNativeRefreshing (Landroid/view/View;Z)V @@ -6142,7 +6142,7 @@ public class com/facebook/react/viewmanagers/AndroidSwitchManagerDelegate : com/ public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/AndroidSwitchManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/AndroidSwitchManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setDisabled (Landroid/view/View;Z)V public abstract fun setEnabled (Landroid/view/View;Z)V public abstract fun setNativeValue (Landroid/view/View;Z)V @@ -6161,7 +6161,7 @@ public class com/facebook/react/viewmanagers/DebuggingOverlayManagerDelegate : c public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/DebuggingOverlayManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/DebuggingOverlayManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun clearElementsHighlights (Landroid/view/View;)V public abstract fun highlightElements (Landroid/view/View;Lcom/facebook/react/bridge/ReadableArray;)V public abstract fun highlightTraceUpdates (Landroid/view/View;Lcom/facebook/react/bridge/ReadableArray;)V @@ -6172,7 +6172,7 @@ public class com/facebook/react/viewmanagers/ModalHostViewManagerDelegate : com/ public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/ModalHostViewManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/ModalHostViewManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setAnimated (Landroid/view/View;Z)V public abstract fun setAnimationType (Landroid/view/View;Ljava/lang/String;)V public abstract fun setHardwareAccelerated (Landroid/view/View;Z)V @@ -6190,7 +6190,7 @@ public class com/facebook/react/viewmanagers/SafeAreaViewManagerDelegate : com/f public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/SafeAreaViewManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/SafeAreaViewManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { } public class com/facebook/react/viewmanagers/UnimplementedNativeViewManagerDelegate : com/facebook/react/uimanager/BaseViewManagerDelegate { @@ -6198,7 +6198,7 @@ public class com/facebook/react/viewmanagers/UnimplementedNativeViewManagerDeleg public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V } -public abstract interface class com/facebook/react/viewmanagers/UnimplementedNativeViewManagerInterface { +public abstract interface class com/facebook/react/viewmanagers/UnimplementedNativeViewManagerInterface : com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { public abstract fun setName (Landroid/view/View;Ljava/lang/String;)V }