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 dc8e2cc
Browse filesBrowse the repository at this point in the historyBrowse files
Avoid copying text fragments and re-attributing runs when building NSAttributedString
`RCTNSAttributedStringFromAttributedString` iterated the fragments by value,
copying each one (its string, its text attributes and a shadow view with
three shared pointers), and attached the event emitter to a text fragment in
a second `addAttributes:range:` pass over the string it had just created with
its attributes, which splits and re-merges the attribute runs. Iterate by
reference and put the emitter into a text fragment's initial attribute
dictionary. Attachment fragments keep the existing second pass, so the
attributes on every run are unchanged.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm
0 commit comments