Allow events recycling and implement recyclable OnLayoutEvents.

Differential Revision: D2585530

fb-gh-sync-id: cb671e39fd64c27a9c11e3cd064bd19cabe7f3b6
This commit is contained in:
Krzysztof Magiera
2015-10-27 08:33:08 -07:00
committed by facebook-github-bot-3
parent 20073fcab2
commit b28ff0451d
5 changed files with 57 additions and 8 deletions

View File

@@ -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(),