Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate NSTextStorage on AttributedString change #38070

Closed
wants to merge 1 commit into from

Conversation

sammy-SC
Copy link
Contributor

Summary:
changelog:
[iOS][fix]: Correctly invalidate NSTextStorage when non layout related props change

Fixes: #37944

Problem:
NSTextStorage was not invalidated if non-layout props were changed. So for example 'color' dynamically changed, it wouldn't get invalidated and font of incorrect color would be rendered on screen.

Reviewed By: javache

Differential Revision: D47019250

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jun 26, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Jun 26, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 9,041,490 -407
android hermes armeabi-v7a 8,291,284 -1,255
android hermes x86 9,558,090 -908
android hermes x86_64 9,400,099 -530
android jsc arm64-v8a 9,600,684 -393
android jsc armeabi-v7a 8,727,795 -1,259
android jsc x86 9,688,164 -914
android jsc x86_64 9,934,248 -538

Base commit: e1fd4a8
Branch: main

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Jun 26, 2023
Summary:
Pull Request resolved: facebook#38070

changelog:
[iOS][fix]: Correctly invalidate NSTextStorage when non layout related props change

Fixes: facebook#37944

Problem:
NSTextStorage was not invalidated if non-layout props were changed. So for example 'color' dynamically changed, it wouldn't get invalidated and font of incorrect color would be rendered on screen.

Reviewed By: javache

Differential Revision: D47019250

fbshipit-source-id: ba33d542dad2eaa0c3effcf827ad03f37fb11cc0
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: facebook#38070

changelog:
[iOS][fix]: Correctly invalidate NSTextStorage when non layout related props change

Fixes: facebook#37944

Problem:
NSTextStorage was not invalidated if non-layout props were changed. So for example 'color' dynamically changed, it wouldn't get invalidated and font of incorrect color would be rendered on screen.

Reviewed By: javache

Differential Revision: D47019250

fbshipit-source-id: 7926253c627788673b2f008d83b15b5374339fbc
@facebook-github-bot
Copy link
Contributor

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

@github-actions
Copy link

This pull request was successfully merged by @sammy-SC in 247da6e.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Jun 26, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 247da6e.

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.

RN 0.72 - Text component dynamic color style issue
3 participants