Set a size of the root view before running test
Reviewed By: astreet Differential Revision: D3352500 fbshipit-source-id: e6bb81601448a08fa216865b5b92f8739646fc05
This commit is contained in:
parent
45636ed7f4
commit
0bbfe79623
|
@ -90,6 +90,7 @@ public class TextInputTest {
|
|||
UIManagerModule uiManager = getUIManagerModule();
|
||||
|
||||
ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application);
|
||||
rootView.setLayoutParams(new ReactRootView.LayoutParams(100, 100));
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int textInputTag = rootTag + 1;
|
||||
final String hintStr = "placeholder text";
|
||||
|
@ -123,6 +124,7 @@ public class TextInputTest {
|
|||
UIManagerModule uiManager = getUIManagerModule();
|
||||
|
||||
ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application);
|
||||
rootView.setLayoutParams(new ReactRootView.LayoutParams(100, 100));
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int textInputTag = rootTag + 1;
|
||||
final String hintStr = "placeholder text";
|
||||
|
|
Loading…
Reference in New Issue