mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-13 22:43:59 +08:00
Reviewed By: mdvacca Differential Revision: D7037558 fbshipit-source-id: a62617c7e16102cf7d12ecde48a95feec264fa51
18 lines
396 B
Java
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;
|
|
}
|
|
}
|