Skip to content

Commit 9394813

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Update PreparedLayoutTextView for new state type (facebook#51301)
Summary: Pull Request resolved: facebook#51301 The type of the state we pass has changed, since the original prototype. Need to update the Java side to reflect this. Changelog: [Internal] Reviewed By: rshest Differential Revision: D74417253 fbshipit-source-id: 9159689e07d6f00504b5116a647c7afdf79005f4
1 parent 729b5ae commit 9394813

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
package com.facebook.react.views.text
99

10-
import android.text.Layout
1110
import android.text.Spanned
1211
import android.view.View
1312
import com.facebook.react.R
@@ -63,7 +62,7 @@ internal class PreparedLayoutTextViewManager :
6362

6463
override fun updateExtraData(view: PreparedLayoutTextView, extraData: Any) {
6564
SystraceSection("PreparedLayoutTextViewManager.updateExtraData").use { _ ->
66-
val layout = extraData as Layout
65+
val layout = (extraData as PreparedLayout).layout
6766
view.layout = layout
6867

6968
// If this text view contains any clickable spans, set a view tag and reset the accessibility

0 commit comments

Comments
 (0)