Fix TextRenderingTestCase

Reviewed By: mdvacca

Differential Revision: D7330681

fbshipit-source-id: 5dd2a60382d01fb841f16851a9b2027e2b08e748
This commit is contained in:
Andrew Chen (Eng) 2018-03-20 00:58:18 -07:00 committed by Facebook Github Bot
parent f136ae1362
commit af42829404
1 changed files with 5 additions and 0 deletions

View File

@ -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
*/