mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
FabricUIManagerModuleTest setup and testCloneNode
Reviewed By: mdvacca Differential Revision: D7037558 fbshipit-source-id: a62617c7e16102cf7d12ecde48a95feec264fa51
This commit is contained in:
parent
7dd12a26b9
commit
190e6bef2e
@ -57,9 +57,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
||||
|
||||
private static final YogaConfig sYogaConfig;
|
||||
static {
|
||||
sYogaConfig = new YogaConfig();
|
||||
sYogaConfig.setPointScaleFactor(0f);
|
||||
sYogaConfig.setUseLegacyStretchBehaviour(true);
|
||||
sYogaConfig = ReactYogaConfigProvider.get();
|
||||
}
|
||||
|
||||
private int mReactTag;
|
||||
|
@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user