fix: replace dispatchCommand with runOnJS for browser search input focus#7337
Merged
janicduplessis merged 2 commits intodevelopfrom Apr 14, 2026
Merged
fix: replace dispatchCommand with runOnJS for browser search input focus#7337janicduplessis merged 2 commits intodevelopfrom
janicduplessis merged 2 commits intodevelopfrom
Conversation
…search Replace `dispatchCommand(inputRef, 'focus')` with `runOnJS` callback to focus the input from a worklet. `dispatchCommand` is not compatible with the new architecture for this use case. Also use `TAB_BAR_HEIGHT` consistently for both platforms instead of hardcoding 46 for Android.
|
🧪 Flashlight Performance Report (AWS Device Farm) 🔀 Commit: 88505da
|
Contributor
Author
|
Validated on iOS and Android emulator |
Contributor
Revert the TAB_BAR_HEIGHT change — it's an independent visual fix unrelated to the dispatchCommand migration and should be reviewed separately.
Contributor
Author
|
Split the tab bar height fix into a separate PR: #7345. This PR now only contains the |
olerass
approved these changes
Apr 14, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Fixes APP-3622
What changed (plus any additional context for devs)
Extracted from the new arch migration PR #6924.
The browser search bar uses Reanimated's
dispatchCommand(inputRef, 'focus')to focus the text input from a worklet.dispatchCommandrelies on the legacy Paper command dispatch mechanism which is not available on new arch (Fabric).Replaces with a
runOnJScallback that callsinputRef.current?.focus()on the JS thread — the standard pattern for triggering imperative methods from worklets.What to test