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:54:52 -07:00
committed by Facebook Github Bot
parent 92fed269c2
commit 393b5f27d2
@@ -7,6 +7,7 @@
package com.facebook.react.uimanager;
import com.facebook.yoga.YogaConfig;
import com.facebook.yoga.YogaConfigFactory;
public class ReactYogaConfigProvider {
@@ -14,7 +15,7 @@ public class ReactYogaConfigProvider {
public static YogaConfig get() {
if (YOGA_CONFIG == null) {
YOGA_CONFIG = new YogaConfig();
YOGA_CONFIG = YogaConfigFactory.create();
YOGA_CONFIG.setPointScaleFactor(0f);
YOGA_CONFIG.setUseLegacyStretchBehaviour(true);
}