diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 27f565a674b638..7e45ba888e5a64 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -8166,13 +8166,15 @@ public final class com/facebook/react/views/unimplementedview/ReactUnimplemented public final fun setName (Ljava/lang/String;)V } -public final class com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager : com/facebook/react/uimanager/ViewGroupManager { +public final class com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager : com/facebook/react/uimanager/ViewGroupManager, com/facebook/react/viewmanagers/UnimplementedNativeViewManagerInterface { public static final field Companion Lcom/facebook/react/views/unimplementedview/ReactUnimplementedViewManager$Companion; public static final field REACT_CLASS Ljava/lang/String; public fun ()V public synthetic fun createViewInstance (Lcom/facebook/react/uimanager/ThemedReactContext;)Landroid/view/View; + public fun getDelegate ()Lcom/facebook/react/uimanager/ViewManagerDelegate; public fun getName ()Ljava/lang/String; - public final fun setName (Lcom/facebook/react/views/unimplementedview/ReactUnimplementedView;Ljava/lang/String;)V + public synthetic fun setName (Landroid/view/View;Ljava/lang/String;)V + public fun setName (Lcom/facebook/react/views/unimplementedview/ReactUnimplementedView;Ljava/lang/String;)V } public class com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager$$PropsSetter : com/facebook/react/uimanager/ViewManagerPropertyUpdater$ViewManagerSetter { diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.kt index 55f9548a9821a4..8281a630c2dd92 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedViewManager.kt @@ -10,11 +10,21 @@ package com.facebook.react.views.unimplementedview import com.facebook.react.module.annotations.ReactModule import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.ViewGroupManager +import com.facebook.react.uimanager.ViewManagerDelegate import com.facebook.react.uimanager.annotations.ReactProp +import com.facebook.react.viewmanagers.UnimplementedNativeViewManagerDelegate +import com.facebook.react.viewmanagers.UnimplementedNativeViewManagerInterface /** ViewManager for [ReactUnimplementedView] to represent a component that is not yet supported. */ @ReactModule(name = ReactUnimplementedViewManager.REACT_CLASS) -public class ReactUnimplementedViewManager : ViewGroupManager() { +public class ReactUnimplementedViewManager : + ViewGroupManager(), + UnimplementedNativeViewManagerInterface { + + private val delegate: ViewManagerDelegate = + UnimplementedNativeViewManagerDelegate(this) + + public override fun getDelegate(): ViewManagerDelegate = delegate protected override fun createViewInstance( reactContext: ThemedReactContext @@ -23,8 +33,8 @@ public class ReactUnimplementedViewManager : ViewGroupManager") } public companion object {