mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 22:41:18 +08:00
Open sourced ProgressBarTest
Reviewed By: andreicoman11 Differential Revision: D3287396 fbshipit-source-id: 1a814b72ebcb5d13106c6a612b341f217c4dc5a6
This commit is contained in:
committed by
Facebook Github Bot 1
parent
36b085422d
commit
9b56ff6bab
@@ -32,6 +32,9 @@ import com.facebook.react.common.ApplicationHolder;
|
||||
import com.facebook.react.common.futures.SimpleSettableFuture;
|
||||
import com.facebook.react.modules.core.Timing;
|
||||
|
||||
import com.facebook.soloader.SoLoader;
|
||||
|
||||
|
||||
/**
|
||||
* Use this class for writing integration tests of catalyst. This class will run all JNI call
|
||||
* within separate android looper, thus you don't need to care about starting your own looper.
|
||||
@@ -170,6 +173,7 @@ public abstract class ReactIntegrationTestCase extends AndroidTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
SoLoader.init(getContext(), /* native exopackage */ false);
|
||||
ApplicationHolder.setApplication((Application) getContext().getApplicationContext());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user