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
Convert TextLayoutManager to Kotlin and Make Internal (#51966)
Summary: Pull Request resolved: #51966 This starts off mechanically, but needed a couple changes: 1. Some null handling changes to `TextTransform` internals 2. We type MapBuffer keys as `Int` instead of `Short`, because Kotlin does not allow the implicit widening cast that Java does. I also made these internal 3. Some shifts around casting 4. Mark TextLayoutManager internal, and remove usages of `UnstableReactNativeAPI` I verified that there were no usages of the Java side of TextLayoutManager throughout `react-native-libraries`, so marking TextLayoutManager internal is unlikely to break 3p libraries. Changelog: [Android][Breaking] - Make Java Side TextLayoutManager Internal Reviewed By: javache Differential Revision: D76444163 fbshipit-source-id: aabb1c498c731598559f0df5c12e0ecdc266339f
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/api/ReactAndroid.api
-31Lines changed: 0 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -6447,37 +6447,6 @@ public final class com/facebook/react/views/text/TextAttributes {
6447
6447
public fun toString ()Ljava/lang/String;
6448
6448
}
6449
6449
6450
-
public class com/facebook/react/views/text/TextLayoutManager {
6451
-
public static final field AS_KEY_BASE_ATTRIBUTES S
6452
-
public static final field AS_KEY_CACHE_ID S
6453
-
public static final field AS_KEY_FRAGMENTS S
6454
-
public static final field AS_KEY_HASH S
6455
-
public static final field AS_KEY_STRING S
6456
-
public static final field FR_KEY_HEIGHT S
6457
-
public static final field FR_KEY_IS_ATTACHMENT S
6458
-
public static final field FR_KEY_REACT_TAG S
6459
-
public static final field FR_KEY_STRING S
6460
-
public static final field FR_KEY_TEXT_ATTRIBUTES S
6461
-
public static final field FR_KEY_WIDTH S
6462
-
public static final field PA_KEY_ADJUST_FONT_SIZE_TO_FIT S
6463
-
public static final field PA_KEY_ELLIPSIZE_MODE S
6464
-
public static final field PA_KEY_HYPHENATION_FREQUENCY S
6465
-
public static final field PA_KEY_INCLUDE_FONT_PADDING S
6466
-
public static final field PA_KEY_MAXIMUM_FONT_SIZE S
6467
-
public static final field PA_KEY_MAX_NUMBER_OF_LINES S
6468
-
public static final field PA_KEY_MINIMUM_FONT_SIZE S
6469
-
public static final field PA_KEY_TEXT_ALIGN_VERTICAL S
6470
-
public static final field PA_KEY_TEXT_BREAK_STRATEGY S
6471
-
public fun <init> ()V
6472
-
public static fun deleteCachedSpannableForTag (I)V
6473
-
public static fun getOrCreateSpannableForText (Landroid/content/Context;Lcom/facebook/react/common/mapbuffer/MapBuffer;Lcom/facebook/react/views/text/ReactTextViewManagerCallback;)Landroid/text/Spannable;
6474
-
public static fun getTextGravity (Lcom/facebook/react/common/mapbuffer/MapBuffer;Landroid/text/Spannable;I)I
6475
-
public static fun isRTL (Lcom/facebook/react/common/mapbuffer/MapBuffer;)Z
6476
-
public static fun measureLines (Landroid/content/Context;Lcom/facebook/react/common/mapbuffer/MapBuffer;Lcom/facebook/react/common/mapbuffer/MapBuffer;FF)Lcom/facebook/react/bridge/WritableArray;
6477
-
public static fun measureText (Landroid/content/Context;Lcom/facebook/react/common/mapbuffer/MapBuffer;Lcom/facebook/react/common/mapbuffer/MapBuffer;FLcom/facebook/yoga/YogaMeasureMode;FLcom/facebook/yoga/YogaMeasureMode;Lcom/facebook/react/views/text/ReactTextViewManagerCallback;[F)J
6478
-
public static fun setCachedSpannableForTag (ILandroid/text/Spannable;)V
6479
-
}
6480
-
6481
6450
public abstract interface class com/facebook/react/views/textinput/ContentSizeWatcher {
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java
0 commit comments