Skip to content

add support for text highlighting#43386

Closed
mightyaleksey wants to merge 1 commit into
facebook:mainfrom
mightyaleksey:export-D54594472
Closed

add support for text highlighting#43386
mightyaleksey wants to merge 1 commit into
facebook:mainfrom
mightyaleksey:export-D54594472

Conversation

@mightyaleksey

Copy link
Copy Markdown

Summary:
Changes:

  • fixes RCTAttributedTextUtils to set RCTAttributedStringIsHighlightedAttributeName attribute according to isHighlighted textAttribute value.
  • adds block to drawAttributedString and passed highlighted bezier curve to it.
  • updates drawRect to visually highlight selected text.

Changelog:

[iOS][Fixed] - Fixed text highlighting in the New Architecture

Reviewed By: sammy-SC

Differential Revision: D54594472

Summary:
Changes:
- fixes `RCTAttributedTextUtils` to set `RCTAttributedStringIsHighlightedAttributeName` attribute according to `isHighlighted` textAttribute value.
- adds block to `drawAttributedString` and passed highlighted bezier curve to it.
- updates `drawRect` to visually highlight selected text.

## Changelog:
[iOS][Fixed] - Fixed text highlighting in the New Architecture

Reviewed By: sammy-SC

Differential Revision: D54594472
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 8, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54594472

@analysis-bot

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 18,012,492 -18
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,371,045 +0
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 4adef35
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 8, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in eadcebb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants