Skip to content

remove requirement for main queue setup for RCTPlatform#49474

Closed
sammy-SC wants to merge 3 commits into
react:mainfrom
sammy-SC:export-D69744257
Closed

remove requirement for main queue setup for RCTPlatform#49474
sammy-SC wants to merge 3 commits into
react:mainfrom
sammy-SC:export-D69744257

Conversation

@sammy-SC

Copy link
Copy Markdown
Contributor

Summary:
changelog: [internal]

Can move setup to the background setup:

  1. Use RCTTraitCollectionProxy to access current trait collection to check if force touch is available.
  2. UIDevice.currentDevice is thread safe and can be read safely from a background thread.

Differential Revision: D69744257

@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 labels Feb 17, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

…nc (#49440)

Summary:

changelog: [internal]

move away from RCTUnsafeExecuteOnMainQueueSync in RCTSafeArea.

Differential Revision: D69662510
…Sync and main thread setup (#49473)

Summary:

changelog: [internal]

Add RCTTraitCollectionProxy which synchronises access to current trait collection. This way, RCTAppearance does not need main thread setup and RCTUnsafeExecuteOnMainQueueSync

Differential Revision: D69750211
Summary:

changelog: [internal]


Can move setup to the background setup:
1. Use RCTTraitCollectionProxy to access current trait collection to check if force touch is available.
2. UIDevice.currentDevice is thread safe and can be read safely from a background thread.

Differential Revision: D69744257
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 19, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 0e54029.

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.

2 participants