Add extra information to error message reported when a ReactRawText is included as a child of a non Text component

Reviewed By: achen1

Differential Revision: D7120188

fbshipit-source-id: 553a26d04a62dceb86d791bcdcb3a5e16a12f64b
This commit is contained in:
David Vacca
2018-03-01 16:57:25 -08:00
committed by Facebook Github Bot
parent 3f85dc5337
commit 22990c3ce7
3 changed files with 21 additions and 9 deletions
@@ -187,6 +187,11 @@ public interface ReactShadowNode<T extends ReactShadowNode> {
boolean isDescendantOf(T ancestorNode);
/**
* @return a {@link String} representation of the Yoga hierarchy of this {@link ReactShadowNode}
*/
String getHierarchyInfo();
/*
* In some cases we need a way to specify some environmental data to shadow node
* to improve layout (or do something similar), so {@code localData} serves these needs.
@@ -197,7 +202,7 @@ public interface ReactShadowNode<T extends ReactShadowNode> {
* Use {@link UIManagerModule#setViewLocalData} to set this property
* (to provide local/environmental data for a shadow node) from the main thread.
*/
public void setLocalData(Object data);
void setLocalData(Object data);
/**
* Returns the offset within the native children owned by all layout-only nodes in the subtree