You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eca3267
Browse filesBrowse the repository at this point in the historyBrowse files
Keep iOS text line breaks stable while LayoutAnimation resizes a paragraph
LayoutAnimation interpolates a paragraph's frame on every frame, and
RCTParagraphComponentView laid out its text in that intermediate size. With
an unlimited number of lines the text container clips its last line instead
of wrapping it, so the last visible line showed words from the next line,
cut off at the edge, and they jumped down once the next line was revealed.
ParagraphState (outside of Android) now stores the size of the content frame
the paragraph was laid out with, and the view lays out text in that size and
clips it to its current bounds, like the old architecture did. LayoutAnimation
keeps the final state while it interpolates the frame, so this needs no
animation-specific code.
Fixes#59161
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/react-native/ReactCommon/react/renderer/components/text/platform/cxx/react/renderer/components/text/ParagraphState.h
0 commit comments