-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: buggy behaviour of search bar / large title on Fabric with native stack v6 #11502
fix: buggy behaviour of search bar / large title on Fabric with native stack v6 #11502
Conversation
Hey @autofix-ci[bot]! Thanks for opening your first pull request in this repo. If you haven't already, make sure to read our contribution guidelines. |
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## 6.x #11502 +/- ##
==========================================
- Coverage 74.04% 74.02% -0.02%
==========================================
Files 177 177
Lines 5628 5628
Branches 2214 2213 -1
==========================================
- Hits 4167 4166 -1
- Misses 1412 1413 +1
Partials 49 49
☔ View full report in Codecov by Sentry. |
Asking for a review @kacperkapusciak |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a remark for future reviewer
bf86c00
to
e86baaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
@Gregoirevda, would you mind posting a snack / repo so that I might reproduce? I've got working Android searchbar in my example app. Ideally create a new issue. |
@Gregoirevda is is also likely that the issue has been already fixed with software-mansion/react-native-screens#1883 New screens version will be released with this fix in couple of days. |
@kkafar Great work, will give an update when available |
FYI, this PR broke header Left/Right components that used absolute placed buttons on iOS. I've traced it back to the latest working package being |
Header customization in native stack got broken in #11502. This change fixes it.
Motivation
UIKit
requiresScrollView
to be at index 0 in given view's subview array to enable it's interaction with navigation bar. On FabricDebugContainer
view got flattened, however it was not removed from hierarchy -- instead the view was attached as first child of theRNSScreenView
disabling system interaction between navigation bar and a scroll view.See
for broader context and explanation.
Test plan
Before
Simulator.Screen.Recording.-.iPhone.14.-.2023-07-18.at.23.31.05.mp4
After
Simulator.Screen.Recording.-.iPhone.14.-.2023-07-18.at.23.28.42.mp4