mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
92fed269c2
commit
393b5f27d2
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user