mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Convert TextLayoutManager to Kotlin and Make Internal (#51966)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
42ca46b95c
commit
e82a677c79
7 files changed
+1048
-1078
No files matched your search
@@ -6447,37 +6447,6 @@ public final class com/facebook/react/views/text/TextAttributes {
|
||||
public fun toString ()Ljava/lang/String;
|
||||
}
|
||||
|
||||
public class com/facebook/react/views/text/TextLayoutManager {
|
||||
public static final field AS_KEY_BASE_ATTRIBUTES S
|
||||
public static final field AS_KEY_CACHE_ID S
|
||||
public static final field AS_KEY_FRAGMENTS S
|
||||
public static final field AS_KEY_HASH S
|
||||
public static final field AS_KEY_STRING S
|
||||
public static final field FR_KEY_HEIGHT S
|
||||
public static final field FR_KEY_IS_ATTACHMENT S
|
||||
public static final field FR_KEY_REACT_TAG S
|
||||
public static final field FR_KEY_STRING S
|
||||
public static final field FR_KEY_TEXT_ATTRIBUTES S
|
||||
public static final field FR_KEY_WIDTH S
|
||||
public static final field PA_KEY_ADJUST_FONT_SIZE_TO_FIT S
|
||||
public static final field PA_KEY_ELLIPSIZE_MODE S
|
||||
public static final field PA_KEY_HYPHENATION_FREQUENCY S
|
||||
public static final field PA_KEY_INCLUDE_FONT_PADDING S
|
||||
public static final field PA_KEY_MAXIMUM_FONT_SIZE S
|
||||
public static final field PA_KEY_MAX_NUMBER_OF_LINES S
|
||||
public static final field PA_KEY_MINIMUM_FONT_SIZE S
|
||||
public static final field PA_KEY_TEXT_ALIGN_VERTICAL S
|
||||
public static final field PA_KEY_TEXT_BREAK_STRATEGY S
|
||||
public fun <init> ()V
|
||||
public static fun deleteCachedSpannableForTag (I)V
|
||||
public static fun getOrCreateSpannableForText (Landroid/content/Context;Lcom/facebook/react/common/mapbuffer/MapBuffer;Lcom/facebook/react/views/text/ReactTextViewManagerCallback;)Landroid/text/Spannable;
|
||||
public static fun getTextGravity (Lcom/facebook/react/common/mapbuffer/MapBuffer;Landroid/text/Spannable;I)I
|
||||
public static fun isRTL (Lcom/facebook/react/common/mapbuffer/MapBuffer;)Z
|
||||
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;
|
||||
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
|
||||
public static fun setCachedSpannableForTag (ILandroid/text/Spannable;)V
|
||||
}
|
||||
|
||||
public abstract interface class com/facebook/react/views/textinput/ContentSizeWatcher {
|
||||
public abstract fun onLayout ()V
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user