mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Support RCTModernEventEmitter+RCTEventEmitter in OnLayoutEvent Event class
Summary: Support RCTModernEventEmitter +RCTEventEmitter in an Event class(es). This improves perf in Fabric. Migrate any constructor callsites to the new constructor and deprecate the previous one. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D26054856 fbshipit-source-id: 228cc08a624e793aff4caf36e1df8285f3b3519d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5d2f77553c
commit
70073664ab
@@ -118,7 +118,13 @@ public class UIViewOperationQueue {
|
||||
uiManager
|
||||
.getEventDispatcher()
|
||||
.dispatchEvent(
|
||||
OnLayoutEvent.obtain(mTag, mScreenX, mScreenY, mScreenWidth, mScreenHeight));
|
||||
OnLayoutEvent.obtain(
|
||||
-1 /* SurfaceId not used in classic renderer */,
|
||||
mTag,
|
||||
mScreenX,
|
||||
mScreenY,
|
||||
mScreenWidth,
|
||||
mScreenHeight));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user