From 5c728a47b9d28b5bfc8546339dc0a9cb8cac69d1 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Wed, 12 Oct 2016 02:49:37 -0700 Subject: [PATCH] Clearly mark java CSSNode as deprecated. It will go away very soon Reviewed By: lucasr Differential Revision: D3992775 fbshipit-source-id: b3ceca277e5c7426eb51f8cbeacf5e2fe451c6ec --- .../com/facebook/csslayout/CSSLayout.java | 2 +- .../facebook/csslayout/CSSLayoutContext.java | 2 +- .../{CSSNode.java => CSSNodeDEPRECATED.java} | 26 ++++++------ .../java/com/facebook/csslayout/CSSStyle.java | 2 +- .../com/facebook/csslayout/LayoutEngine.java | 40 +++++++++---------- .../react/uimanager/ReactShadowNode.java | 12 +++--- .../react/uimanager/UIImplementation.java | 2 +- .../react/uimanager/UIManagerModule.java | 2 +- .../react/uimanager/UIViewOperationQueue.java | 2 +- .../facebook/react/uimanager/ViewManager.java | 2 +- .../views/modal/ModalHostShadowNode.java | 4 +- .../text/ReactTextInlineImageShadowNode.java | 3 +- .../react/views/text/ReactTextShadowNode.java | 6 +-- ...coBasedReactTextInlineImageShadowNode.java | 5 +-- 14 files changed, 55 insertions(+), 55 deletions(-) rename ReactAndroid/src/main/java/com/facebook/csslayout/{CSSNode.java => CSSNodeDEPRECATED.java} (96%) diff --git a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java index 11f9f65f7..9bddaf91f 100644 --- a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java +++ b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayout.java @@ -12,7 +12,7 @@ package com.facebook.csslayout; import java.util.Arrays; /** - * Where the output of {@link LayoutEngine#layoutNode(CSSNode, float)} will go in the CSSNode. + * Where the output of {@link LayoutEngine#layoutNode(CSSNodeDEPRECATED, float)} will go in the CSSNodeDEPRECATED. */ public class CSSLayout { // This value was chosen based on empiracle data. Even the most complicated diff --git a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayoutContext.java b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayoutContext.java index 70a9c8869..91e4f0ba0 100644 --- a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayoutContext.java +++ b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSLayoutContext.java @@ -13,7 +13,7 @@ package com.facebook.csslayout; * A context for holding values local to a given instance of layout computation. * * This is necessary for making layout thread-safe. A separate instance should - * be used when {@link CSSNode#calculateLayout} is called concurrently on + * be used when {@link CSSNodeDEPRECATED#calculateLayout} is called concurrently on * different node hierarchies. */ public class CSSLayoutContext { diff --git a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSNodeDEPRECATED.java similarity index 96% rename from ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java rename to ReactAndroid/src/main/java/com/facebook/csslayout/CSSNodeDEPRECATED.java index 2795d8ce4..aca4af67f 100644 --- a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java +++ b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSNodeDEPRECATED.java @@ -24,7 +24,7 @@ import static com.facebook.csslayout.CSSLayout.POSITION_TOP; * A CSS Node. It has a style object you can manipulate at {@link #style}. After calling * {@link #calculateLayout()}, {@link #layout} will be filled with the results of the layout. */ -public class CSSNode implements CSSNodeAPI { +public class CSSNodeDEPRECATED implements CSSNodeAPI { private enum LayoutState { /** @@ -52,10 +52,10 @@ public class CSSNode implements CSSNodeAPI { public int lineIndex = 0; - CSSNode nextChild; + CSSNodeDEPRECATED nextChild; - private @Nullable ArrayList mChildren; - private @Nullable CSSNode mParent; + private @Nullable ArrayList mChildren; + private @Nullable CSSNodeDEPRECATED mParent; private @Nullable MeasureFunction mMeasureFunction = null; private LayoutState mLayoutState = LayoutState.DIRTY; private boolean mIsTextNode = false; @@ -72,13 +72,13 @@ public class CSSNode implements CSSNodeAPI { } @Override - public CSSNode getChildAt(int i) { + public CSSNodeDEPRECATED getChildAt(int i) { Assertions.assertNotNull(mChildren); return mChildren.get(i); } @Override - public void addChildAt(CSSNode child, int i) { + public void addChildAt(CSSNodeDEPRECATED child, int i) { if (child.mParent != null) { throw new IllegalStateException("Child already has a parent, it must be removed first."); } @@ -93,16 +93,17 @@ public class CSSNode implements CSSNodeAPI { } @Override - public CSSNode removeChildAt(int i) { + public CSSNodeDEPRECATED removeChildAt(int i) { Assertions.assertNotNull(mChildren); - CSSNode removed = mChildren.remove(i); + CSSNodeDEPRECATED removed = mChildren.remove(i); removed.mParent = null; dirty(); return removed; } @Override - public @Nullable CSSNode getParent() { + public @Nullable + CSSNodeDEPRECATED getParent() { return mParent; } @@ -110,7 +111,7 @@ public class CSSNode implements CSSNodeAPI { * @return the index of the given child, or -1 if the child doesn't exist in this node. */ @Override - public int indexOf(CSSNode child) { + public int indexOf(CSSNodeDEPRECATED child) { Assertions.assertNotNull(mChildren); return mChildren.indexOf(child); } @@ -427,7 +428,6 @@ public class CSSNode implements CSSNodeAPI { } } - /** * Get this node's margin, as defined by style + default margin. */ @@ -637,12 +637,12 @@ public class CSSNode implements CSSNodeAPI { /** * Resets this instance to its default state. This method is meant to be used when - * recycling {@link CSSNode} instances. + * recycling {@link CSSNodeDEPRECATED} instances. */ @Override public void reset() { if (mParent != null || (mChildren != null && mChildren.size() > 0)) { - throw new IllegalStateException("You should not reset an attached CSSNode"); + throw new IllegalStateException("You should not reset an attached CSSNodeDEPRECATED"); } style.reset(); diff --git a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSStyle.java b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSStyle.java index 36cb049e2..c17ce527a 100644 --- a/ReactAndroid/src/main/java/com/facebook/csslayout/CSSStyle.java +++ b/ReactAndroid/src/main/java/com/facebook/csslayout/CSSStyle.java @@ -12,7 +12,7 @@ package com.facebook.csslayout; import java.util.Arrays; /** - * The CSS style definition for a {@link CSSNode}. + * The CSS style definition for a {@link CSSNodeDEPRECATED}. */ public class CSSStyle { diff --git a/ReactAndroid/src/main/java/com/facebook/csslayout/LayoutEngine.java b/ReactAndroid/src/main/java/com/facebook/csslayout/LayoutEngine.java index 7497fd2f1..d5ae98c3b 100644 --- a/ReactAndroid/src/main/java/com/facebook/csslayout/LayoutEngine.java +++ b/ReactAndroid/src/main/java/com/facebook/csslayout/LayoutEngine.java @@ -19,7 +19,7 @@ import static com.facebook.csslayout.CSSLayout.POSITION_RIGHT; import static com.facebook.csslayout.CSSLayout.POSITION_TOP; /** - * Calculates layouts based on CSS style. See {@link #layoutNode(CSSNode, float, float)}. + * Calculates layouts based on CSS style. See {@link #layoutNode(CSSNodeDEPRECATED, float, float)}. */ public class LayoutEngine { @@ -77,20 +77,20 @@ public class LayoutEngine { Spacing.END }; - private static boolean isFlexBasisAuto(CSSNode node) { + private static boolean isFlexBasisAuto(CSSNodeDEPRECATED node) { return CSSConstants.isUndefined(node.style.flexBasis); } - private static float getFlexGrowFactor(CSSNode node) { + private static float getFlexGrowFactor(CSSNodeDEPRECATED node) { return node.style.flexGrow; } - private static float getFlexShrinkFactor(CSSNode node) { + private static float getFlexShrinkFactor(CSSNodeDEPRECATED node) { return node.style.flexShrink; } - private static float boundAxisWithinMinAndMax(CSSNode node, int axis, float value) { + private static float boundAxisWithinMinAndMax(CSSNodeDEPRECATED node, int axis, float value) { float min = CSSConstants.UNDEFINED; float max = CSSConstants.UNDEFINED; @@ -116,7 +116,7 @@ public class LayoutEngine { return boundValue; } - private static float boundAxis(CSSNode node, int axis, float value) { + private static float boundAxis(CSSNodeDEPRECATED node, int axis, float value) { float paddingAndBorderAxis = node.style.padding.getWithFallback(leadingSpacing[axis], leading[axis]) + node.style.border.getWithFallback(leadingSpacing[axis], leading[axis]) + @@ -125,7 +125,7 @@ public class LayoutEngine { return Math.max(boundAxisWithinMinAndMax(node, axis, value), paddingAndBorderAxis); } - private static float getRelativePosition(CSSNode node, int axis) { + private static float getRelativePosition(CSSNodeDEPRECATED node, int axis) { float lead = node.style.position.getWithFallback(leadingSpacing[axis], leading[axis]); if (!Float.isNaN(lead)) { return lead; @@ -135,7 +135,7 @@ public class LayoutEngine { return Float.isNaN(trailingPos) ? 0 : -trailingPos; } - private static void setPosition(CSSNode node, CSSDirection direction) { + private static void setPosition(CSSNodeDEPRECATED node, CSSDirection direction) { int mainAxis = resolveAxis(getFlexDirection(node), direction); int crossAxis = getCrossFlexDirection(mainAxis, direction); @@ -163,7 +163,7 @@ public class LayoutEngine { return axis; } - private static CSSDirection resolveDirection(CSSNode node, CSSDirection parentDirection) { + private static CSSDirection resolveDirection(CSSNodeDEPRECATED node, CSSDirection parentDirection) { CSSDirection direction = node.style.direction; if (direction == CSSDirection.INHERIT) { direction = (parentDirection == null ? CSSDirection.LTR : parentDirection); @@ -172,7 +172,7 @@ public class LayoutEngine { return direction; } - private static int getFlexDirection(CSSNode node) { + private static int getFlexDirection(CSSNodeDEPRECATED node) { return node.style.flexDirection.ordinal(); } @@ -187,20 +187,20 @@ public class LayoutEngine { } } - private static CSSAlign getAlignItem(CSSNode node, CSSNode child) { + private static CSSAlign getAlignItem(CSSNodeDEPRECATED node, CSSNodeDEPRECATED child) { if (child.style.alignSelf != CSSAlign.AUTO) { return child.style.alignSelf; } return node.style.alignItems; } - private static boolean isMeasureDefined(CSSNode node) { + private static boolean isMeasureDefined(CSSNodeDEPRECATED node) { return node.isMeasureDefined(); } /*package*/ static void layoutNode( CSSLayoutContext layoutContext, - CSSNode node, + CSSNodeDEPRECATED node, float availableWidth, float availableHeight, CSSDirection parentDirection) { @@ -326,7 +326,7 @@ public class LayoutEngine { // private static boolean layoutNodeInternal( CSSLayoutContext layoutContext, - CSSNode node, + CSSNodeDEPRECATED node, float availableWidth, float availableHeight, CSSDirection parentDirection, @@ -522,7 +522,7 @@ public class LayoutEngine { // private static void layoutNodeImpl( CSSLayoutContext layoutContext, - CSSNode node, + CSSNodeDEPRECATED node, float availableWidth, float availableHeight, CSSDirection parentDirection, @@ -636,8 +636,8 @@ public class LayoutEngine { CSSJustify justifyContent = node.style.justifyContent; boolean isNodeFlexWrap = (node.style.flexWrap == CSSWrap.WRAP); - CSSNode firstAbsoluteChild = null; - CSSNode currentAbsoluteChild = null; + CSSNodeDEPRECATED firstAbsoluteChild = null; + CSSNodeDEPRECATED currentAbsoluteChild = null; float leadingPaddingAndBorderMain = (node.style.padding.getWithFallback(leadingSpacing[mainAxis], leading[mainAxis]) + node.style.border.getWithFallback(leadingSpacing[mainAxis], leading[mainAxis])); float trailingPaddingAndBorderMain = (node.style.padding.getWithFallback(trailingSpacing[mainAxis], trailing[mainAxis]) + node.style.border.getWithFallback(trailingSpacing[mainAxis], trailing[mainAxis])); @@ -655,7 +655,7 @@ public class LayoutEngine { float availableInnerCrossDim = isMainAxisRow ? availableInnerHeight : availableInnerWidth; // STEP 3: DETERMINE FLEX BASIS FOR EACH ITEM - CSSNode child; + CSSNodeDEPRECATED child; int i; float childWidth; float childHeight; @@ -791,8 +791,8 @@ public class LayoutEngine { i = startOfLineIndex; // Maintain a linked list of the child nodes that can shrink and/or grow. - CSSNode firstRelativeChild = null; - CSSNode currentRelativeChild = null; + CSSNodeDEPRECATED firstRelativeChild = null; + CSSNodeDEPRECATED currentRelativeChild = null; // Add items to the current line until it's full or we run out of items. while (i < childCount) { diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java index b78c51136..4a68601a1 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java @@ -14,16 +14,16 @@ import javax.annotation.Nullable; import java.util.ArrayList; import com.facebook.csslayout.CSSConstants; -import com.facebook.csslayout.CSSNode; +import com.facebook.csslayout.CSSNodeDEPRECATED; import com.facebook.csslayout.Spacing; import com.facebook.infer.annotation.Assertions; import com.facebook.react.uimanager.annotations.ReactPropertyHolder; /** * Base node class for representing virtual tree of React nodes. Shadow nodes are used primarily - * for layouting therefore it extends {@link CSSNode} to allow that. They also help with handling - * Common base subclass of {@link CSSNode} for all layout nodes for react-based view. It extends - * {@link CSSNode} by adding additional capabilities. + * for layouting therefore it extends {@link CSSNodeDEPRECATED} to allow that. They also help with handling + * Common base subclass of {@link CSSNodeDEPRECATED} for all layout nodes for react-based view. It extends + * {@link CSSNodeDEPRECATED} by adding additional capabilities. * * Instances of this class receive property updates from JS via @{link UIManagerModule}. Subclasses * may use {@link #updateShadowNode} to persist some of the updated fields in the node instance that @@ -43,7 +43,7 @@ import com.facebook.react.uimanager.annotations.ReactPropertyHolder; * information. */ @ReactPropertyHolder -public class ReactShadowNode extends CSSNode { +public class ReactShadowNode extends CSSNodeDEPRECATED { private int mReactTag; private @Nullable String mViewClassName; @@ -163,7 +163,7 @@ public class ReactShadowNode extends CSSNode { } @Override - public void addChildAt(CSSNode child, int i) { + public void addChildAt(CSSNodeDEPRECATED child, int i) { super.addChildAt(child, i); markUpdated(); ReactShadowNode node = (ReactShadowNode) child; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java index c91258f22..3ab74e8e0 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java @@ -321,7 +321,7 @@ public class UIImplementation { Arrays.sort(viewsToAdd, ViewAtIndex.COMPARATOR); Arrays.sort(indicesToRemove); - // Apply changes to CSSNode hierarchy + // Apply changes to CSSNodeDEPRECATED hierarchy int lastIndexRemoved = -1; for (int i = indicesToRemove.length - 1; i >= 0; i--) { int indexToRemove = indicesToRemove[i]; diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index e199a82a5..3edff08dd 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -56,7 +56,7 @@ import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_M *

*

== CSSNodes ==

* In order to allow layout and measurement to occur on a non-UI thread, this module also - * operates on intermediate CSSNode objects that correspond to a native view. These CSSNode are able + * operates on intermediate CSSNodeDEPRECATED objects that correspond to a native view. These CSSNodeDEPRECATED are able * to calculate layout according to their styling rules, and then the resulting x/y/width/height of * that layout is scheduled as an operation that will be applied to native view hierarchy at the end * of current batch. diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java index fcfff998f..8bcc9e8f3 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java @@ -95,7 +95,7 @@ public class UIViewOperationQueue { /** * Operation for updating native view's position and size. The operation is not created directly * by a {@link UIManagerModule} call from JS. Instead it gets inflated using computed position - * and size values by CSSNode hierarchy. + * and size values by CSSNodeDEPRECATED hierarchy. */ private final class UpdateLayoutOperation extends ViewOperation { diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java index e75d28b49..7222e3b0e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java @@ -25,7 +25,7 @@ import com.facebook.react.uimanager.annotations.ReactPropertyHolder; /** * Class responsible for knowing how to create and update catalyst Views of a given type. It is also - * responsible for creating and updating CSSNode subclasses used for calculating position and size + * responsible for creating and updating CSSNodeDEPRECATED subclasses used for calculating position and size * for the corresponding native view. */ @ReactPropertyHolder diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java index f1e3b5adf..b6b310c48 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostShadowNode.java @@ -11,7 +11,7 @@ package com.facebook.react.views.modal; import android.graphics.Point; -import com.facebook.csslayout.CSSNode; +import com.facebook.csslayout.CSSNodeDEPRECATED; import com.facebook.react.uimanager.LayoutShadowNode; /** @@ -29,7 +29,7 @@ class ModalHostShadowNode extends LayoutShadowNode { * within the in Modal.js. This needs to fill the entire window. */ @Override - public void addChildAt(CSSNode child, int i) { + public void addChildAt(CSSNodeDEPRECATED child, int i) { super.addChildAt(child, i); Point modalSize = ModalHostHelper.getModalHostSize(getThemedContext()); child.setStyleWidth(modalSize.x); diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java index 4e986644e..33bba4042 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextInlineImageShadowNode.java @@ -9,10 +9,11 @@ package com.facebook.react.views.text; +import com.facebook.csslayout.CSSNodeDEPRECATED; import com.facebook.react.uimanager.LayoutShadowNode; /** - * Base class for {@link com.facebook.csslayout.CSSNode}s that represent inline images. + * Base class for {@link CSSNodeDEPRECATED}s that represent inline images. */ public abstract class ReactTextInlineImageShadowNode extends LayoutShadowNode { diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java index aaa579ea9..29876e284 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java @@ -33,7 +33,7 @@ import android.widget.TextView; import com.facebook.csslayout.CSSDirection; import com.facebook.csslayout.CSSConstants; import com.facebook.csslayout.CSSMeasureMode; -import com.facebook.csslayout.CSSNode; +import com.facebook.csslayout.CSSNodeDEPRECATED; import com.facebook.csslayout.CSSNodeAPI; import com.facebook.csslayout.MeasureOutput; import com.facebook.infer.annotation.Assertions; @@ -59,7 +59,7 @@ import com.facebook.react.uimanager.annotations.ReactProp; * in a corresponding {@link ReactTextShadowNode}. Resulting {@link Spannable} object is then then * passed as "computedDataFromMeasure" down to shadow and native view. *

- * TODO(7255858): Rename *CSSNode to *ShadowView (or sth similar) as it's no longer is used solely + * TODO(7255858): Rename *CSSNodeDEPRECATED to *ShadowView (or sth similar) as it's no longer is used solely * for layouting */ public class ReactTextShadowNode extends LayoutShadowNode { @@ -112,7 +112,7 @@ public class ReactTextShadowNode extends LayoutShadowNode { sb.append(textCSSNode.mText); } for (int i = 0, length = textCSSNode.getChildCount(); i < length; i++) { - CSSNode child = textCSSNode.getChildAt(i); + CSSNodeDEPRECATED child = textCSSNode.getChildAt(i); if (child instanceof ReactTextShadowNode) { buildSpannedFromTextCSSNode((ReactTextShadowNode) child, sb, ops); } else if (child instanceof ReactTextInlineImageShadowNode) { diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java index fe759f41f..b7289aaf8 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java @@ -18,16 +18,15 @@ import android.content.res.Resources; import android.net.Uri; import com.facebook.common.util.UriUtil; -import com.facebook.csslayout.CSSNode; +import com.facebook.csslayout.CSSNodeDEPRECATED; import com.facebook.drawee.controller.AbstractDraweeControllerBuilder; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.uimanager.annotations.ReactProp; import com.facebook.react.views.text.ReactTextInlineImageShadowNode; import com.facebook.react.views.text.TextInlineImageSpan; -import com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageSpan; /** - * {@link CSSNode} that represents an inline image. Loading is done using Fresco. + * {@link CSSNodeDEPRECATED} that represents an inline image. Loading is done using Fresco. * */ public class FrescoBasedReactTextInlineImageShadowNode extends ReactTextInlineImageShadowNode {