Set Event timestamp internally

Summary: This is pure cleanup so that we can make sure that all events are living in the same time space (currently nano seconds).

Reviewed By: foghina

Differential Revision: D3593884

fbshipit-source-id: 71b084362008f1c93c21880630acf11f5c058355
This commit is contained in:
Dave Miller
2016-07-21 07:29:53 -07:00
committed by Facebook Github Bot 7
parent faabeadebf
commit da063e3d55
47 changed files with 80 additions and 141 deletions

View File

@@ -13,7 +13,6 @@ import android.support.v4.util.Pools;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.common.SystemClock;
import com.facebook.react.uimanager.events.Event;
import com.facebook.react.uimanager.events.RCTEventEmitter;
@@ -45,7 +44,7 @@ public class OnLayoutEvent extends Event<OnLayoutEvent> {
}
protected void init(int viewTag, int x, int y, int width, int height) {
super.init(viewTag, SystemClock.nanoTime());
super.init(viewTag);
mX = x;
mY = y;
mWidth = width;