Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useHeaderHeight does not update after cancelling search #2611

Open
C2thehris opened this issue Jan 10, 2025 · 1 comment
Open

useHeaderHeight does not update after cancelling search #2611

C2thehris opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@C2thehris
Copy link

Description

See react-navigation/react-navigation#12331

Current behavior

useHeaderHeight() does not update its value when the search bar is closed

useHeaderHeightBug.mp4

Expected behavior

useHeaderHeight() should update to provide the adjusted height after the search bar is dismissed.

Steps to reproduce

  1. Click search bar
  2. Click "Cancel"

Snack or a link to a repository

https://snack.expo.dev/@c2thehris/useheaderheight-with-searchbar-ios-bug

Screens version

4.4.0

React Native version

0.76

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

None

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided labels Jan 10, 2025
@kkafar kkafar self-assigned this Jan 13, 2025
@kkafar
Copy link
Member

kkafar commented Jan 13, 2025

Thanks for the report! We'll look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants