Skip to content

Commit

Permalink
Fix timing initialization bug
Browse files Browse the repository at this point in the history
Reviewed By: AaaChiuuu

Differential Revision: D2875476

fb-gh-sync-id: a0d5b97524da3a37fc7bd30e8d2e58b9a0a9ba9e
  • Loading branch information
andreicoman11 authored and facebook-github-bot-8 committed Jan 29, 2016
1 parent 598df0b commit 7e5247c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@
import android.util.SparseArray;
import android.view.Choreographer;

import com.facebook.infer.annotation.Assertions;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.LifecycleEventListener;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.LifecycleEventListener;
import com.facebook.react.bridge.WritableArray;
import com.facebook.react.uimanager.ReactChoreographer;
import com.facebook.react.common.SystemClock;
import com.facebook.infer.annotation.Assertions;
import com.facebook.react.uimanager.ReactChoreographer;

/**
* Native module for JS timer execution. Timers fire on frame boundaries.
Expand Down Expand Up @@ -124,7 +123,6 @@ public void initialize() {
mJSTimersModule = getReactApplicationContext().getCatalystInstance()
.getJSModule(JSTimersExecution.class);
getReactApplicationContext().addLifecycleEventListener(this);
setChoreographerCallback();
}

@Override
Expand Down

0 comments on commit 7e5247c

Please sign in to comment.