Skip to content

Conversation

@sammy-SC
Copy link
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
Contributor

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

…nc (facebook#49440)

Summary:

changelog: [internal]

move away from RCTUnsafeExecuteOnMainQueueSync in RCTSafeArea.

Differential Revision: D69662510
…Sync and main thread setup (facebook#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
Contributor

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

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…cebook#49474)

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
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…cebook#49474)

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
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…cebook#49474)

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
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…cebook#49474)

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
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…cebook#49474)

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
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…cebook#49474)

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 the Merged This PR has been merged. label Feb 19, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0e54029.

gabrieldonadel pushed a commit to gabrieldonadel/react-native that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: facebook#49474

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.

Reviewed By: rshest

Differential Revision: D69744257

fbshipit-source-id: 8857a827c3d3e03a9b2ced15e6970d728693a043
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