mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
3cb03cb297
commit
7e0f894d3a
+4
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -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;
|
||||
}
|
||||
|
||||
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user