Skip to content

Commit efb80f9

Browse files
javachemeta-codesync[bot]
authored andcommitted
xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java (#55174)
Summary: Pull Request resolved: #55174 Changelog: [Internal] Reviewed By: cortinico Differential Revision: D90111698 fbshipit-source-id: e9087a903e59513651034f078fe7757eeb65bb10
1 parent 2e3284c commit efb80f9

8 files changed

Lines changed: 1293 additions & 1454 deletions

File tree

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,41 +2324,34 @@ public final class com/facebook/react/fabric/FabricUIManagerProviderImpl : com/f
23242324
public fun createUIManager (Lcom/facebook/react/bridge/ReactApplicationContext;)Lcom/facebook/react/bridge/UIManager;
23252325
}
23262326

2327-
public class com/facebook/react/fabric/mounting/SurfaceMountingManager {
2328-
public static final field TAG Ljava/lang/String;
2329-
public fun <init> (ILcom/facebook/react/touch/JSResponderHandler;Lcom/facebook/react/uimanager/ViewManagerRegistry;Lcom/facebook/react/uimanager/RootViewManager;Lcom/facebook/react/fabric/mounting/MountingManager$MountItemExecutor;Lcom/facebook/react/uimanager/ThemedReactContext;)V
2330-
public fun addViewAt (III)V
2331-
public fun attachRootView (Landroid/view/View;Lcom/facebook/react/uimanager/ThemedReactContext;)V
2332-
public fun createView (Ljava/lang/String;ILcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/uimanager/StateWrapper;Lcom/facebook/react/fabric/events/EventEmitterWrapper;Z)V
2333-
public fun createViewUnsafe (Ljava/lang/String;ILcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/uimanager/StateWrapper;Lcom/facebook/react/fabric/events/EventEmitterWrapper;Z)V
2334-
public fun deleteView (I)V
2335-
public fun enqueuePendingEvent (ILjava/lang/String;ZLcom/facebook/react/bridge/WritableMap;I)V
2336-
public fun getContext ()Lcom/facebook/react/uimanager/ThemedReactContext;
2337-
public fun getEventEmitter (I)Lcom/facebook/react/fabric/events/EventEmitterWrapper;
2338-
public fun getSurfaceId ()I
2339-
public fun getView (I)Landroid/view/View;
2340-
public fun getViewExists (I)Z
2341-
public fun isRootViewAttached ()Z
2342-
public fun isStopped ()Z
2343-
public fun markActiveTouchForTag (I)V
2344-
public fun preallocateView (Ljava/lang/String;ILcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/uimanager/StateWrapper;Z)V
2345-
public fun printSurfaceState ()V
2346-
public fun receiveCommand (IILcom/facebook/react/bridge/ReadableArray;)V
2347-
public fun receiveCommand (ILjava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
2348-
public fun removeViewAt (III)V
2349-
public fun scheduleMountItemOnViewAttach (Lcom/facebook/react/fabric/mounting/mountitems/MountItem;)V
2350-
public fun sendAccessibilityEvent (II)V
2351-
public fun setJSResponder (IIZ)V
2352-
public fun stopSurface ()V
2353-
public fun storeSynchronousMountPropsOverride (ILcom/facebook/react/bridge/ReadableMap;)V
2354-
public fun sweepActiveTouchForTag (I)V
2355-
public fun updateEventEmitter (ILcom/facebook/react/fabric/events/EventEmitterWrapper;)V
2356-
public fun updateLayout (IIIIIIII)V
2357-
public fun updateOverflowInset (IIIII)V
2358-
public fun updatePadding (IIIII)V
2359-
public fun updateProps (ILcom/facebook/react/bridge/ReadableMap;)V
2360-
public fun updatePropsSynchronously (ILcom/facebook/react/bridge/ReadableMap;)V
2361-
public fun updateState (ILcom/facebook/react/uimanager/StateWrapper;)V
2327+
public final class com/facebook/react/fabric/mounting/SurfaceMountingManager {
2328+
public final fun addViewAt (III)V
2329+
public final fun attachRootView (Landroid/view/View;Lcom/facebook/react/uimanager/ThemedReactContext;)V
2330+
public final fun deleteView (I)V
2331+
public final fun enqueuePendingEvent (ILjava/lang/String;ZLcom/facebook/react/bridge/WritableMap;I)V
2332+
public final fun getContext ()Lcom/facebook/react/uimanager/ThemedReactContext;
2333+
public final fun getSurfaceId ()I
2334+
public final fun getView (I)Landroid/view/View;
2335+
public final fun getViewExists (I)Z
2336+
public final fun isRootViewAttached ()Z
2337+
public final fun isStopped ()Z
2338+
public final fun markActiveTouchForTag (I)V
2339+
public final fun preallocateView (Ljava/lang/String;ILcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/uimanager/StateWrapper;Z)V
2340+
public final fun printSurfaceState ()V
2341+
public final fun receiveCommand (IILcom/facebook/react/bridge/ReadableArray;)V
2342+
public final fun receiveCommand (ILjava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
2343+
public final fun removeViewAt (III)V
2344+
public final fun sendAccessibilityEvent (II)V
2345+
public final fun setJSResponder (IIZ)V
2346+
public final fun stopSurface ()V
2347+
public final fun storeSynchronousMountPropsOverride (ILcom/facebook/react/bridge/ReadableMap;)V
2348+
public final fun sweepActiveTouchForTag (I)V
2349+
public final fun updateLayout (IIIIIIII)V
2350+
public final fun updateOverflowInset (IIIII)V
2351+
public final fun updatePadding (IIIII)V
2352+
public final fun updateProps (ILcom/facebook/react/bridge/ReadableMap;)V
2353+
public final fun updatePropsSynchronously (ILcom/facebook/react/bridge/ReadableMap;)V
2354+
public final fun updateState (ILcom/facebook/react/uimanager/StateWrapper;)V
23622355
}
23632356

23642357
public abstract interface class com/facebook/react/interfaces/TaskInterface {

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,8 @@ public void synchronouslyUpdateViewOnUIThread(final int reactTag, final Readable
827827
private void preallocateView(
828828
int rootTag,
829829
int reactTag,
830-
final String componentName,
831-
@Nullable Object props,
830+
String componentName,
831+
Object props,
832832
@Nullable Object stateWrapper,
833833
boolean isLayoutable) {
834834
mMountItemDispatcher.addPreAllocateMountItem(

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ internal class MountingManager(
9999
}
100100

101101
@AnyThread
102-
fun attachRootView(surfaceId: Int, rootView: View?, themedReactContext: ThemedReactContext?) {
102+
fun attachRootView(surfaceId: Int, rootView: View, themedReactContext: ThemedReactContext) {
103103
val surfaceMountingManager = getSurfaceManagerEnforced(surfaceId, "attachView")
104104

105105
if (surfaceMountingManager.isStopped) {
@@ -336,7 +336,7 @@ internal class MountingManager(
336336
fun enqueuePendingEvent(
337337
surfaceId: Int,
338338
reactTag: Int,
339-
eventName: String?,
339+
eventName: String,
340340
canCoalesceEvent: Boolean,
341341
params: WritableMap?,
342342
@EventCategoryDef eventCategory: Int,

0 commit comments

Comments
 (0)