Document hideNavigationBar in headerSearchBarOptions#1474
Closed
Kasendwa wants to merge 1 commit intoreact-navigation:mainfrom
Closed
Document hideNavigationBar in headerSearchBarOptions#1474Kasendwa wants to merge 1 commit intoreact-navigation:mainfrom
hideNavigationBar in headerSearchBarOptions#1474Kasendwa wants to merge 1 commit intoreact-navigation:mainfrom
Conversation
Add documentation for the hideNavigationBar prop in the headerSearchBarOptions section. This prop maps to UIKit's UISearchController.hidesNavigationBarDuringPresentation and allows keeping the header title and buttons visible while the search bar is active. Updated in both v7 and v8 docs.
✅ Deploy Preview for react-navigation-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
satya164
requested changes
Feb 16, 2026
Member
satya164
left a comment
There was a problem hiding this comment.
Thanks for the PR.
This is not available in Header from elements library, so it needs to be documented in native-stack-navigator.md instead of elements
Author
|
I see. I've also realized that it's already documented via https://reactnavigation.org/docs/8.x/native-stack-navigator#hidenavigationbar So i'll just close this now. Thank you |
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.
This PR adds documentation for the
hideNavigationBarprop in theheaderSearchBarOptionssection of the Elements docs.When using
headerSearchBarOptions, focusing the search bar on iOS hides the navigation bar (title and header buttons) by default. This is standardUISearchControllerbehavior controlled byhidesNavigationBarDuringPresentation. ThehideNavigationBarprop allows overriding this, but it was not documented despite being supported and passed through toreact-native-screens.Changes
hideNavigationBarentry to theheaderSearchBarOptionsprop list in:versioned_docs/version-7.x/elements.mdversioned_docs/version-8.x/elements.mdThe entry is placed alphabetically after
cancelButtonTextand beforeinputType, matching the existing format.Why
UISearchController.hidesNavigationBarDuringPresentationreact-native-screensdoes not explicitly set this totrue— it defers to the platform defaulttruevs. leaving it unset can produce different behavior on future iOS versionsheaderSearchBarOptionsmay want to preserve the liquid glass header and its buttons during searchRelated