-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Move cancelRequest_ in move ctor in ImageRequest #37221
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Base commit: 5eabbd7 |
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
labels
May 3, 2023
…tecture (facebook#37109) Summary: Currently, when `fontFamily` style is set to a specific font instead of a font family, [that specific font is used](https://github.com/facebook/react-native/blob/2058da8f2012578c3e82f1af19c3248346655f9a/packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm#L126) to display the text on iOS when using the new architecture. This is different behavior to the old architecture, where the font family and [font properties were extracted from the specified](https://github.com/facebook/react-native/blob/2058da8f2012578c3e82f1af19c3248346655f9a/packages/react-native/React/Views/RCTFont.mm#L450-L457) font and overridden if not provided by the user. ## Changelog: [IOS] [FIXED] - Make font resolution work when using specific font name on the new architecture Pull Request resolved: facebook#37109 Test Plan: You can verify the problem on a simple snippet: ```jsx import React from 'react'; import {SafeAreaView, Text} from 'react-native'; function App() { return ( <SafeAreaView style={{flex: 1}}> <Text style={{ fontFamily: 'Helvetica Light Oblique', fontWeight: 'bold', fontStyle: 'normal', }}> Some random text </Text> </SafeAreaView> ); } export default App; ``` <details> <summary> Here's before & after </summary> Without changes from this PR: <img src="https://user-images.githubusercontent.com/21055725/234618852-07cbe67c-f534-4b04-b760-828f4edef549.png" width=400 /> With changes from this PR: <img src="https://user-images.githubusercontent.com/21055725/234618902-9e44a389-8f27-4ab0-95dc-e34ca781d2ed.png" width=400 /> </details> Differential Revision: D45351185 Pulled By: sammy-SC fbshipit-source-id: 09b17b75d58f2cfe82dc755424632ab8cc6da55e
Summary: changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 54e6cb8749c7a5229463d888aec943c0e34af3c6
This pull request was exported from Phabricator. Differential Revision: D45524704 |
sammy-SC
added a commit
to sammy-SC/react-native
that referenced
this pull request
May 3, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 269674caf09ba0d58b3457af629fc27b080c124c
sammy-SC
added a commit
to sammy-SC/react-native
that referenced
this pull request
May 3, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 097abe789ab5ab578ed639ac8657968fe53d26ce
sammy-SC
added a commit
to sammy-SC/react-native
that referenced
this pull request
May 3, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 513ad009dbae2fc6fbe3a3a10414961a2dec5021
sammy-SC
added a commit
to sammy-SC/react-native
that referenced
this pull request
May 3, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: b3bb30a0accc44d116470de9e57b3f8b70f738ee
sammy-SC
added a commit
to sammy-SC/react-native
that referenced
this pull request
May 4, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 0cc5c30c2696be058306e08f137fd90288578a38
sammy-SC
added a commit
to sammy-SC/react-native
that referenced
this pull request
May 4, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: e492ba4763f66977c8407b09ad838f7f028cff4e
This pull request has been merged in 9132d7a. |
jeongshin
pushed a commit
to jeongshin/react-native
that referenced
this pull request
May 7, 2023
Summary: Pull Request resolved: facebook#37221 changelog: [internal] Add missing cancelRequest_ std::move. bypass-github-export-checks Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 1dd0d627549dab353872654d78f7b59d1b2d7174
kelset
pushed a commit
that referenced
this pull request
May 10, 2023
Summary: Pull Request resolved: #37221 changelog: [internal] Add missing cancelRequest_ std::move. bypass-github-export-checks Reviewed By: javache, cortinico Differential Revision: D45524704 fbshipit-source-id: 1dd0d627549dab353872654d78f7b59d1b2d7174
This was referenced Aug 10, 2023
This was referenced Jan 8, 2024
This was referenced Feb 28, 2024
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.
Merged
This PR has been merged.
p: Facebook
Partner: Facebook
Partner
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
changelog: [internal]
Add missing cancelRequest_ std::move.
Differential Revision: D45524704