Switch to YogaConfigFactory.create
Summary: Switch to `YogaNodeFactory.create()` instead of using `YogaNode.create()` Reviewed By: SidharthGuglani Differential Revision: D17266408 fbshipit-source-id: 69e1e59c7345d16eb174af97c2e231666a02354b
This commit is contained in:
committed by
Facebook Github Bot
parent
67a3841164
commit
d697bbe0a5
@@ -25,7 +25,7 @@ public class YGFlexDirectionTest {
|
||||
|
||||
@Test
|
||||
public void test_flex_direction_column_no_height() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -90,7 +90,7 @@ public class YGFlexDirectionTest {
|
||||
|
||||
@Test
|
||||
public void test_flex_direction_row_no_width() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.ROW);
|
||||
@@ -156,7 +156,7 @@ public class YGFlexDirectionTest {
|
||||
|
||||
@Test
|
||||
public void test_flex_direction_column() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -222,7 +222,7 @@ public class YGFlexDirectionTest {
|
||||
|
||||
@Test
|
||||
public void test_flex_direction_row() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.ROW);
|
||||
@@ -289,7 +289,7 @@ public class YGFlexDirectionTest {
|
||||
|
||||
@Test
|
||||
public void test_flex_direction_column_reverse() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.COLUMN_REVERSE);
|
||||
@@ -356,7 +356,7 @@ public class YGFlexDirectionTest {
|
||||
|
||||
@Test
|
||||
public void test_flex_direction_row_reverse() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.ROW_REVERSE);
|
||||
|
Reference in New Issue
Block a user