Switch to `YogaNode.create()`
Summary: @public Switches instance creation from `new YogaNode()` to `YogaNode.create()`. This allows for experimentation with different implementations, while maintaining API + ABI compatibility internally at FB, as well as for dependent projects in open source and elsewhere. Reviewed By: amir-shalem Differential Revision: D14122975 fbshipit-source-id: f194b146b7cd693dba1a7dafdf92d350e54cb179
This commit is contained in:
Родитель
2c25e34060
Коммит
043d0d0e2d
|
@ -86,7 +86,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
|||
mDefaultPadding = new Spacing(0);
|
||||
if (!isVirtual()) {
|
||||
YogaNode node = YogaNodePool.get().acquire();
|
||||
mYogaNode = node == null ? new YogaNode(sYogaConfig) : node;
|
||||
mYogaNode = node == null ? YogaNode.create(sYogaConfig) : node;
|
||||
mYogaNode.setData(this);
|
||||
Arrays.fill(mPadding, YogaConstants.UNDEFINED);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче