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:
committed by
Facebook Github Bot
parent
755fa07b39
commit
e33123f955
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user