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:
David Aurelio 2019-02-19 11:15:10 -08:00 коммит произвёл Facebook Github Bot
Родитель 2c25e34060
Коммит 043d0d0e2d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 {