mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 08:26:23 +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;
|
private static final YogaConfig sYogaConfig;
|
||||||
static {
|
static {
|
||||||
sYogaConfig = new YogaConfig();
|
sYogaConfig = ReactYogaConfigProvider.get();
|
||||||
sYogaConfig.setPointScaleFactor(0f);
|
|
||||||
sYogaConfig.setUseLegacyStretchBehaviour(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private int mReactTag;
|
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