mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-02 06:45:02 +08:00
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:
committed by
Facebook Github Bot 7
parent
faabeadebf
commit
da063e3d55
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user