mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt (#53524)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53524 Reviewed By: rshest Differential Revision: D81210918 fbshipit-source-id: 9c68952d658b846194fbcb0ccf79d3dc6878ef2b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
52937337c3
commit
8f8d6f0689
+2
-2
@@ -160,7 +160,7 @@ public constructor(reactTextViewManagerCallback: ReactTextViewManagerCallback? =
|
||||
YogaMeasureOutput.make(layoutWidth, layoutHeight)
|
||||
}
|
||||
|
||||
private val mTextBaselineFunction = YogaBaselineFunction { node, width, height ->
|
||||
private val textBaselineFunction = YogaBaselineFunction { node, width, height ->
|
||||
val text =
|
||||
checkNotNull(preparedSpannableText) {
|
||||
"Spannable element has not been prepared in onBeforeLayout"
|
||||
@@ -176,7 +176,7 @@ public constructor(reactTextViewManagerCallback: ReactTextViewManagerCallback? =
|
||||
private fun initMeasureFunction() {
|
||||
if (!isVirtual) {
|
||||
setMeasureFunction(textMeasureFunction)
|
||||
setBaselineFunction(mTextBaselineFunction)
|
||||
setBaselineFunction(textBaselineFunction)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user