Skip to content

Commit bee670c

Browse files
joevilchesfacebook-github-bot
authored andcommitted
getShadowNodeClass() impl in PreparedLayoutTextViewManager
Summary: This crashes without this change, now it does not! Differential Revision: D73626930
1 parent 9bb9a28 commit bee670c

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
@@ -193,10 +193,7 @@ internal class PreparedLayoutTextViewManager :
193193
view.setPadding(left, top, right, bottom)
194194
}
195195

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

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

0 commit comments

Comments
 (0)