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:
Amir Shalem
2019-09-17 06:52:49 -07:00
committed by Facebook Github Bot
parent 67a3841164
commit d697bbe0a5
23 changed files with 289 additions and 289 deletions

View File

@@ -25,7 +25,7 @@ public class YGSizeOverflowTest {
@Test
public void test_nested_overflowing_child() {
YogaConfig config = new YogaConfig();
YogaConfig config = YogaConfigFactory.create();
final YogaNode root = createNode(config);
root.setWidth(100f);
@@ -77,7 +77,7 @@ public class YGSizeOverflowTest {
@Test
public void test_nested_overflowing_child_in_constraint_parent() {
YogaConfig config = new YogaConfig();
YogaConfig config = YogaConfigFactory.create();
final YogaNode root = createNode(config);
root.setWidth(100f);
@@ -131,7 +131,7 @@ public class YGSizeOverflowTest {
@Test
public void test_parent_wrap_child_size_overflowing_parent() {
YogaConfig config = new YogaConfig();
YogaConfig config = YogaConfigFactory.create();
final YogaNode root = createNode(config);
root.setWidth(100f);