mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-02 14:54:58 +08:00
Use nanoTime instead of currentTimeMillis for events
Reviewed By: foghina Differential Revision: D2953917 fb-gh-sync-id: effd09849a5504c9eb7c684a510e616fdcfcdf6e shipit-source-id: effd09849a5504c9eb7c684a510e616fdcfcdf6e
This commit is contained in:
committed by
facebook-github-bot-7
parent
cf3bd9f9a1
commit
b5d26679c4
@@ -9,11 +9,11 @@
|
||||
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import android.os.SystemClock;
|
||||
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 +45,7 @@ public class OnLayoutEvent extends Event<OnLayoutEvent> {
|
||||
}
|
||||
|
||||
protected void init(int viewTag, int x, int y, int width, int height) {
|
||||
super.init(viewTag, SystemClock.uptimeMillis());
|
||||
super.init(viewTag, SystemClock.nanoTime());
|
||||
mX = x;
|
||||
mY = y;
|
||||
mWidth = width;
|
||||
|
||||
Reference in New Issue
Block a user