mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Initialize ReactChoreographer before creating the TimingModule
Reviewed By: mdvacca Differential Revision: D7185838 fbshipit-source-id: f775f5668ccff3b311c95a0bdd37a420ec64b7d4
This commit is contained in:
committed by
Facebook Github Bot
parent
a162dc8cc6
commit
596bcb6d84
+2
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.testing;
|
||||
|
||||
import com.facebook.react.modules.core.ReactChoreographer;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
@@ -139,6 +140,7 @@ public abstract class ReactIntegrationTestCase extends AndroidTestCase {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
ReactChoreographer.initialize();
|
||||
Timing timing = new Timing(getContext(), mock(DevSupportManager.class));
|
||||
simpleSettableFuture.set(timing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user