mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 17:22:05 +08:00
Allow events recycling and implement recyclable OnLayoutEvents.
Differential Revision: D2585530 fb-gh-sync-id: cb671e39fd64c27a9c11e3cd064bd19cabe7f3b6
This commit is contained in:
committed by
facebook-github-bot-3
parent
20073fcab2
commit
b28ff0451d
@@ -806,7 +806,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
// notify JS about layout event if requested
|
||||
if (cssNode.shouldNotifyOnLayout()) {
|
||||
mEventDispatcher.dispatchEvent(
|
||||
new OnLayoutEvent(
|
||||
OnLayoutEvent.obtain(
|
||||
tag,
|
||||
cssNode.getScreenX(),
|
||||
cssNode.getScreenY(),
|
||||
|
||||
Reference in New Issue
Block a user