You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move all ReactSpan subclasses to a separate folder (#42594)
Summary:
Move all `ReactSpan` subclasses to a separate folder.
This is a minor improvement in the context of my multi-PR work on react-native-community/discussions-and-proposals#695.
I'm adding a new span class later, which was the direct motivation for this change.
## Changelog:
<!-- Help reviewers and the release process by writing your own changelog entry.
Pick one each for the category and type tags:
[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message
For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[INTERNAL] [CHANGE] - Move all `ReactSpan` subclasses to a separate folder
Pull Request resolved: #42594
Reviewed By: mdvacca
Differential Revision: D53123733
Pulled By: cortinico
fbshipit-source-id: 10db214a520d157c231e6f3b97948b4209a7ad4b
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/api/ReactAndroid.api
-90Lines changed: 0 additions & 90 deletions
Original file line number
Diff line number
Diff line change
@@ -6733,29 +6733,6 @@ public class com/facebook/react/views/switchview/ReactSwitchManager$ReactSwitchS
6733
6733
public fun setProperty (Lcom/facebook/react/views/switchview/ReactSwitchManager$ReactSwitchShadowNode;Ljava/lang/String;Ljava/lang/Object;)V
6734
6734
}
6735
6735
6736
-
public class com/facebook/react/views/text/CustomLetterSpacingSpan : android/text/style/MetricAffectingSpan, com/facebook/react/views/text/ReactSpan {
6737
-
public fun <init> (F)V
6738
-
public fun getSpacing ()F
6739
-
public fun updateDrawState (Landroid/text/TextPaint;)V
6740
-
public fun updateMeasureState (Landroid/text/TextPaint;)V
6741
-
}
6742
-
6743
-
public class com/facebook/react/views/text/CustomLineHeightSpan : android/text/style/LineHeightSpan, com/facebook/react/views/text/ReactSpan {
6744
-
public fun <init> (F)V
6745
-
public fun chooseHeight (Ljava/lang/CharSequence;IIIILandroid/graphics/Paint$FontMetricsInt;)V
6746
-
public fun getLineHeight ()I
6747
-
}
6748
-
6749
-
public class com/facebook/react/views/text/CustomStyleSpan : android/text/style/MetricAffectingSpan, com/facebook/react/views/text/ReactSpan {
6750
-
public fun <init> (IILjava/lang/String;Ljava/lang/String;Landroid/content/res/AssetManager;)V
6751
-
public fun getFontFamily ()Ljava/lang/String;
6752
-
public fun getFontFeatureSettings ()Ljava/lang/String;
6753
-
public fun getStyle ()I
6754
-
public fun getWeight ()I
6755
-
public fun updateDrawState (Landroid/text/TextPaint;)V
6756
-
public fun updateMeasureState (Landroid/text/TextPaint;)V
6757
-
}
6758
-
6759
6736
public final class com/facebook/react/views/text/DefaultStyleValuesUtil {
6760
6737
public static fun getDefaultTextColor (Landroid/content/Context;)Landroid/content/res/ColorStateList;
6761
6738
public static fun getDefaultTextColorHighlight (Landroid/content/Context;)I
@@ -6767,14 +6744,6 @@ public class com/facebook/react/views/text/FontMetricsUtil {
6767
6744
public static fun getFontMetrics (Ljava/lang/CharSequence;Landroid/text/Layout;Landroid/text/TextPaint;Landroid/content/Context;)Lcom/facebook/react/bridge/WritableArray;
6768
6745
}
6769
6746
6770
-
public class com/facebook/react/views/text/ReactAbsoluteSizeSpan : android/text/style/AbsoluteSizeSpan, com/facebook/react/views/text/ReactSpan {
6771
-
public fun <init> (I)V
6772
-
}
6773
-
6774
-
public class com/facebook/react/views/text/ReactBackgroundColorSpan : android/text/style/BackgroundColorSpan, com/facebook/react/views/text/ReactSpan {
6775
-
public fun <init> (I)V
6776
-
}
6777
-
6778
6747
public abstract class com/facebook/react/views/text/ReactBaseTextShadowNode : com/facebook/react/uimanager/LayoutShadowNode, com/facebook/react/views/text/BasicTextAttributeProvider {
6779
6748
public static final field DEFAULT_TEXT_SHADOW_COLOR I
6780
6749
public static final field PROP_SHADOW_COLOR Ljava/lang/String;
@@ -6866,10 +6835,6 @@ public class com/facebook/react/views/text/ReactFontManager {
6866
6835
public fun setTypeface (Ljava/lang/String;ILandroid/graphics/Typeface;)V
6867
6836
}
6868
6837
6869
-
public class com/facebook/react/views/text/ReactForegroundColorSpan : android/text/style/ForegroundColorSpan, com/facebook/react/views/text/ReactSpan {
6870
-
public fun <init> (I)V
6871
-
}
6872
-
6873
6838
public class com/facebook/react/views/text/ReactRawTextManager : com/facebook/react/uimanager/ViewManager {
6874
6839
public fun <init> ()V
6875
6840
public synthetic fun createShadowNodeInstance ()Lcom/facebook/react/uimanager/ReactShadowNode;
@@ -6903,18 +6868,6 @@ public class com/facebook/react/views/text/ReactRawTextShadowNode$$PropsSetter :
6903
6868
public fun setProperty (Lcom/facebook/react/views/text/ReactRawTextShadowNode;Ljava/lang/String;Ljava/lang/Object;)V
6904
6869
}
6905
6870
6906
-
public abstract interface class com/facebook/react/views/text/ReactSpan {
6907
-
}
6908
-
6909
-
public class com/facebook/react/views/text/ReactStrikethroughSpan : android/text/style/StrikethroughSpan, com/facebook/react/views/text/ReactSpan {
6910
-
public fun <init> ()V
6911
-
}
6912
-
6913
-
public class com/facebook/react/views/text/ReactTagSpan : com/facebook/react/views/text/ReactSpan {
6914
-
public fun <init> (I)V
6915
-
public fun getReactTag ()I
6916
-
}
6917
-
6918
6871
public abstract class com/facebook/react/views/text/ReactTextAnchorViewManager : com/facebook/react/uimanager/BaseViewManager {
6919
6872
public fun <init> ()V
6920
6873
public fun setAccessible (Lcom/facebook/react/views/text/ReactTextView;Z)V
@@ -6937,11 +6890,6 @@ public abstract class com/facebook/react/views/text/ReactTextAnchorViewManager :
6937
6890
public fun setTextAlignVertical (Lcom/facebook/react/views/text/ReactTextView;Ljava/lang/String;)V
6938
6891
}
6939
6892
6940
-
public abstract class com/facebook/react/views/text/ReactTextInlineImageShadowNode : com/facebook/react/uimanager/LayoutShadowNode {
6941
-
public fun <init> ()V
6942
-
public abstract fun buildInlineImageSpan ()Lcom/facebook/react/views/text/TextInlineImageSpan;
6943
-
}
6944
-
6945
6893
public class com/facebook/react/views/text/ReactTextShadowNode : com/facebook/react/views/text/ReactBaseTextShadowNode {
6946
6894
public fun <init> ()V
6947
6895
public fun <init> (Lcom/facebook/react/views/text/ReactTextViewManagerCallback;)V
@@ -7056,10 +7004,6 @@ public class com/facebook/react/views/text/ReactTypefaceUtils {
7056
7004
public static fun parseFontWeight (Ljava/lang/String;)I
7057
7005
}
7058
7006
7059
-
public class com/facebook/react/views/text/ReactUnderlineSpan : android/text/style/UnderlineSpan, com/facebook/react/views/text/ReactSpan {
7060
-
public fun <init> ()V
7061
-
}
7062
-
7063
7007
public class com/facebook/react/views/text/ReactVirtualTextShadowNode : com/facebook/react/views/text/ReactBaseTextShadowNode {
7064
7008
public fun <init> ()V
7065
7009
public fun isVirtual ()Z
@@ -7089,18 +7033,6 @@ public class com/facebook/react/views/text/ReactVirtualTextViewManager$$PropsSet
7089
7033
public fun setProperty (Lcom/facebook/react/views/text/ReactVirtualTextViewManager;Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V
7090
7034
}
7091
7035
7092
-
public class com/facebook/react/views/text/SetSpanOperation {
7093
-
protected field end I
7094
-
protected field start I
7095
-
protected field what Lcom/facebook/react/views/text/ReactSpan;
7096
-
public fun execute (Landroid/text/SpannableStringBuilder;I)V
7097
-
}
7098
-
7099
-
public class com/facebook/react/views/text/ShadowStyleSpan : android/text/style/CharacterStyle, com/facebook/react/views/text/ReactSpan {
7100
-
public fun <init> (FFFI)V
7101
-
public fun updateDrawState (Landroid/text/TextPaint;)V
7102
-
}
7103
-
7104
7036
public class com/facebook/react/views/text/TextAttributeProps : com/facebook/react/views/text/EffectiveTextAttributeProvider {
7105
7037
public static final field TA_KEY_ACCESSIBILITY_ROLE S
7106
7038
public static final field TA_KEY_ALIGNMENT S
@@ -7213,28 +7145,6 @@ public class com/facebook/react/views/text/TextAttributes {
7213
7145
public fun toString ()Ljava/lang/String;
7214
7146
}
7215
7147
7216
-
public abstract class com/facebook/react/views/text/TextInlineImageSpan : android/text/style/ReplacementSpan, com/facebook/react/views/text/ReactSpan {
7217
-
public fun <init> ()V
7218
-
public abstract fun getDrawable ()Landroid/graphics/drawable/Drawable;
7219
-
public abstract fun getHeight ()I
7220
-
public abstract fun getWidth ()I
7221
-
public abstract fun onAttachedToWindow ()V
7222
-
public abstract fun onDetachedFromWindow ()V
7223
-
public abstract fun onFinishTemporaryDetach ()V
7224
-
public abstract fun onStartTemporaryDetach ()V
7225
-
public static fun possiblyUpdateInlineImageSpans (Landroid/text/Spannable;Landroid/widget/TextView;)V
7226
-
public abstract fun setTextView (Landroid/widget/TextView;)V
7227
-
}
7228
-
7229
-
public class com/facebook/react/views/text/TextInlineViewPlaceholderSpan : android/text/style/ReplacementSpan, com/facebook/react/views/text/ReactSpan {
7230
-
public fun <init> (III)V
7231
-
public fun draw (Landroid/graphics/Canvas;Ljava/lang/CharSequence;IIFIIILandroid/graphics/Paint;)V
7232
-
public fun getHeight ()I
7233
-
public fun getReactTag ()I
7234
-
public fun getSize (Landroid/graphics/Paint;Ljava/lang/CharSequence;IILandroid/graphics/Paint$FontMetricsInt;)I
7235
-
public fun getWidth ()I
7236
-
}
7237
-
7238
7148
public class com/facebook/react/views/text/TextLayoutManager {
7239
7149
public fun <init> ()V
7240
7150
public static fun deleteCachedSpannableForTag (I)V
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java
0 commit comments