Adds check to unset a YogaNode's parent during reconciliation.

Summary: Adds check to unset a YogaNode's parent during reconciliation.

Reviewed By: davidaurelio

Differential Revision: D15714899

fbshipit-source-id: 6e2c2a28106574d062fec722c9a051acea87d0b6
This commit is contained in:
Aditya Sharat
2019-06-07 09:22:17 -07:00
committed by Facebook Github Bot
parent 755fa07b39
commit e33123f955
2 changed files with 7 additions and 0 deletions

View File

@@ -42,6 +42,8 @@ public abstract class YogaNode {
@Nullable
public abstract YogaNode getOwner();
public abstract void unsetOwner();
/** @deprecated Use #getOwner() instead. This will be removed in the next version. */
@Deprecated
@Nullable

View File

@@ -137,6 +137,11 @@ public abstract class YogaNodeJNIBase extends YogaNode implements Cloneable {
return mOwner;
}
@Override
public void unsetOwner() {
mOwner = null;
}
/** @deprecated Use #getOwner() instead. This will be removed in the next version. */
@Deprecated
@Nullable