-
-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix operation scheduling on iOS (#2483)
## Description #2467 replaces calls to `setImmediate` and `requestAnimationFrame` with `queueMicrotask`. This introduces a bug, where on iOS the `flushOperations` method would get called too early. This PR changes `flushOperations` to only be used on the new architecture, where it's actually required, and adds a retry mechanism for attaching handlers to native views. It also updates parts of the new arch-related code to function properly - finding the recognizer responsible for the touch responder and attaching the root view handler. Fixes #2482 ## Test plan Test on the Example and FabricExample apps. --------- Co-authored-by: Tomek Zawadzki <[email protected]>
- Loading branch information
1 parent
5c25dc2
commit 9926b7c
Showing
2 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
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
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