mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
3f85dc5337
commit
22990c3ce7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user