Skip to content

Commit 496b0a8

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Migrate ReactVirtualTextShadowNode to kotlin and make it internal (#47434)
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
1 parent 4a119c4 commit 496b0a8

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7522,11 +7522,6 @@ public class com/facebook/react/views/text/ReactTypefaceUtils {
75227522
public static fun parseFontWeight (Ljava/lang/String;)I
75237523
}
75247524

7525-
public class com/facebook/react/views/text/ReactVirtualTextShadowNode : com/facebook/react/views/text/ReactBaseTextShadowNode {
7526-
public fun <init> ()V
7527-
public fun isVirtual ()Z
7528-
}
7529-
75307525
public class com/facebook/react/views/text/TextAttributeProps {
75317526
public static final field TA_KEY_ACCESSIBILITY_ROLE S
75327527
public static final field TA_KEY_ALIGNMENT S
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.facebook.react.views.text;
8+
package com.facebook.react.views.text
99

1010
/** A virtual text node. */
11-
public class ReactVirtualTextShadowNode extends ReactBaseTextShadowNode {
11+
internal class ReactVirtualTextShadowNode : ReactBaseTextShadowNode() {
1212

13-
@Override
14-
public boolean isVirtual() {
15-
return true;
16-
}
17-
18-
public ReactVirtualTextShadowNode() {}
13+
override fun isVirtual(): Boolean = true
1914
}

0 commit comments

Comments
 (0)