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