Skip to content

Commit 1e2154e

Browse files
joevilchesfacebook-github-bot
authored andcommitted
getShadowNodeClass() impl in PreparedLayoutTextViewManager (#50925)
Summary: Pull Request resolved: #50925 This crashes without this change, now it does not! Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D73626930
1 parent b40157e commit 1e2154e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/PreparedLayoutTextViewManager.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,7 @@ internal class PreparedLayoutTextViewManager :
192192
view.setPadding(left, top, right, bottom)
193193
}
194194

195-
override fun getShadowNodeClass(): Class<out LayoutShadowNode> {
196-
throw UnsupportedOperationException(
197-
"PreparedLayoutTextViewManager does not use legacy arch shadow nodes")
198-
}
195+
override fun getShadowNodeClass(): Class<out LayoutShadowNode> = LayoutShadowNode::class.java
199196

200197
override fun addView(parent: PreparedLayoutTextView, child: View, index: Int) {
201198
parent.addView(child, index)

0 commit comments

Comments
 (0)