Fix TextRenderingTestCase
Reviewed By: mdvacca Differential Revision: D7330681 fbshipit-source-id: 5dd2a60382d01fb841f16851a9b2027e2b08e748
This commit is contained in:
parent
f136ae1362
commit
af42829404
|
@ -11,6 +11,7 @@ import android.content.Intent;
|
|||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import com.facebook.react.bridge.JavaScriptModule;
|
||||
import com.facebook.react.bridge.ReactContext;
|
||||
import com.facebook.react.testing.fabric.FabricTestModule;
|
||||
import com.facebook.react.testing.idledetection.IdleWaiter;
|
||||
|
@ -107,6 +108,10 @@ public abstract class ReactInstrumentationTest extends
|
|||
return false;
|
||||
}
|
||||
|
||||
protected <T extends JavaScriptModule> T getJSModule(Class<T> jsInterface) {
|
||||
return getReactContext().getJSModule(jsInterface);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to provide extra native modules to be loaded before the app starts
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue