Skip to content

Commit

Permalink
Migrate ReactVirtualTextShadowNode to kotlin and make it internal (#4…
Browse files Browse the repository at this point in the history
…7434)

Summary:
Pull Request resolved: #47434

Migrate ReactVirtualTextShadowNode to kotlin and make it internal

changelog: [Android][Breaking] Reduce visibility of ReactVirtualTextShadowNode to internal

Reviewed By: shwanton

Differential Revision: D65493927

fbshipit-source-id: 2b5997d000b5dc489ba93edb226455ef0855b98b
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 6, 2024
1 parent 4a119c4 commit 496b0a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
5 changes: 0 additions & 5 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -7522,11 +7522,6 @@ public class com/facebook/react/views/text/ReactTypefaceUtils {
public static fun parseFontWeight (Ljava/lang/String;)I
}

public class com/facebook/react/views/text/ReactVirtualTextShadowNode : com/facebook/react/views/text/ReactBaseTextShadowNode {
public fun <init> ()V
public fun isVirtual ()Z
}

public class com/facebook/react/views/text/TextAttributeProps {
public static final field TA_KEY_ACCESSIBILITY_ROLE S
public static final field TA_KEY_ALIGNMENT S
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.views.text;
package com.facebook.react.views.text

/** A virtual text node. */
public class ReactVirtualTextShadowNode extends ReactBaseTextShadowNode {
internal class ReactVirtualTextShadowNode : ReactBaseTextShadowNode() {

@Override
public boolean isVirtual() {
return true;
}

public ReactVirtualTextShadowNode() {}
override fun isVirtual(): Boolean = true
}

0 comments on commit 496b0a8

Please # to comment.