mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 22:41:18 +08:00
don't block attaching ReactRootView on measuring
Reviewed By: achen1 Differential Revision: D5117394 fbshipit-source-id: 00f65a59247a75d4b42240fe25935aa9bd8948b1
This commit is contained in:
committed by
Facebook Github Bot
parent
23a34d4c65
commit
8125ce520d
@@ -151,7 +151,7 @@ public class UIManagerModuleTest {
|
||||
|
||||
ReactRootView rootView =
|
||||
new ReactRootView(RuntimeEnvironment.application.getApplicationContext());
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
int viewTag = rootTag + 1;
|
||||
int subViewTag = viewTag + 1;
|
||||
|
||||
@@ -609,7 +609,7 @@ public class UIManagerModuleTest {
|
||||
UIManagerModule uiManager = getUIManagerModule();
|
||||
ReactRootView rootView =
|
||||
new ReactRootView(RuntimeEnvironment.application.getApplicationContext());
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
|
||||
final int containerTag = rootTag + 1;
|
||||
final int containerSiblingTag = containerTag + 1;
|
||||
@@ -662,7 +662,7 @@ public class UIManagerModuleTest {
|
||||
private ViewGroup createSimpleTextHierarchy(UIManagerModule uiManager, String text) {
|
||||
ReactRootView rootView =
|
||||
new ReactRootView(RuntimeEnvironment.application.getApplicationContext());
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
int textTag = rootTag + 1;
|
||||
int rawTextTag = textTag + 1;
|
||||
|
||||
@@ -701,7 +701,7 @@ public class UIManagerModuleTest {
|
||||
|
||||
private TestMoveDeleteHierarchy createMoveDeleteHierarchy(UIManagerModule uiManager) {
|
||||
ReactRootView rootView = new ReactRootView(mReactContext);
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
|
||||
TestMoveDeleteHierarchy hierarchy = new TestMoveDeleteHierarchy(rootView, rootTag);
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ public class ReactTextTest {
|
||||
JavaOnlyMap textProps,
|
||||
JavaOnlyMap rawTextProps) {
|
||||
ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application);
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
int textTag = rootTag + 1;
|
||||
int rawTextTag = textTag + 1;
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ public class TextInputTest {
|
||||
|
||||
ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application);
|
||||
rootView.setLayoutParams(new ReactRootView.LayoutParams(100, 100));
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
int textInputTag = rootTag + 1;
|
||||
final String hintStr = "placeholder text";
|
||||
|
||||
@@ -125,7 +125,7 @@ public class TextInputTest {
|
||||
|
||||
ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application);
|
||||
rootView.setLayoutParams(new ReactRootView.LayoutParams(100, 100));
|
||||
int rootTag = uiManager.addMeasuredRootView(rootView);
|
||||
int rootTag = uiManager.addRootView(rootView);
|
||||
int textInputTag = rootTag + 1;
|
||||
final String hintStr = "placeholder text";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user