Revert D58459930: Add ReactMarkerConstants.CONTENT_APPEARED support on Android

Differential Revision:
D58459930

Original commit changeset: 4498a3623c50

Original Phabricator Diff: D58459930

fbshipit-source-id: 8bc5ef3c8b1e42a4085ee6d2834bf6906c936c0d
This commit is contained in:
Sergei Rybalkin
2024-06-13 07:19:45 -07:00
committed by Facebook GitHub Bot
parent 3cb03cb297
commit 7e0f894d3a
3 changed files with 5 additions and 7 deletions
@@ -434,8 +434,10 @@ public class ReactRootView extends FrameLayout implements RootView, ReactRoot {
if (mShouldLogContentAppeared) {
mShouldLogContentAppeared = false;
String jsModuleName = getJSModuleName();
ReactMarker.logMarker(ReactMarkerConstants.CONTENT_APPEARED, jsModuleName, mRootViewTag);
if (mJSModuleName != null) {
ReactMarker.logMarker(ReactMarkerConstants.CONTENT_APPEARED, mJSModuleName, mRootViewTag);
}
}
}
@@ -375,9 +375,7 @@ public class ReactHostImpl implements ReactHost {
public ReactSurface createSurface(
Context context, String moduleName, @Nullable Bundle initialProps) {
ReactSurfaceImpl surface = new ReactSurfaceImpl(context, moduleName, initialProps);
ReactSurfaceView surfaceView = new ReactSurfaceView(context, surface);
surfaceView.setShouldLogContentAppeared(true);
surface.attachView(surfaceView);
surface.attachView(new ReactSurfaceView(context, surface));
surface.attach(this);
return surface;
}
@@ -134,8 +134,6 @@ public class ReactSurfaceView(context: Context?, private val surface: ReactSurfa
// This surface view is always on Fabric.
@UIManagerType override fun getUIManagerType(): Int = UIManagerType.FABRIC
override fun getJSModuleName(): String = surface.moduleName
override fun dispatchJSTouchEvent(event: MotionEvent) {
val eventDispatcher = surface.eventDispatcher
if (eventDispatcher != null) {