Files
react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactYogaConfigProvider.java
Andrew Chen (Eng) 190e6bef2e FabricUIManagerModuleTest setup and testCloneNode
Reviewed By: mdvacca

Differential Revision: D7037558

fbshipit-source-id: a62617c7e16102cf7d12ecde48a95feec264fa51
2018-02-21 12:47:51 -08:00

18 lines
396 B
Java

package com.facebook.react.uimanager;
import com.facebook.yoga.YogaConfig;
public class ReactYogaConfigProvider {
private static YogaConfig YOGA_CONFIG;
public static YogaConfig get() {
if (YOGA_CONFIG == null) {
YOGA_CONFIG = new YogaConfig();
YOGA_CONFIG.setPointScaleFactor(0f);
YOGA_CONFIG.setUseLegacyStretchBehaviour(true);
}
return YOGA_CONFIG;
}
}