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

fix: Adds dispatch for hiding header #1153

Merged
merged 12 commits into from
Oct 8, 2021

Conversation

Ubax
Copy link
Contributor

@Ubax Ubax commented Sep 27, 2021

Description

Fixes issue #996.

More about native issue https://stackoverflow.com/questions/51402566/navigation-bar-issue-when-search-is-active-and-push-to-next-view-controller

Testing

Before:

Screen.Recording.2021-09-28.at.15.16.35.mov

After:

Screen.Recording.2021-09-28.at.15.11.21.mov

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@kacperkapusciak kacperkapusciak marked this pull request as ready for review September 28, 2021 07:07
ios/RNSScreen.m Outdated Show resolved Hide resolved
ios/RNSScreen.m Outdated Show resolved Hide resolved
ios/RNSScreen.m Outdated Show resolved Hide resolved
Ubax and others added 2 commits September 28, 2021 02:14
Co-authored-by: Kacper Kapuściak <39658211+kacperkapusciak@users.noreply.github.com>
Copy link
Member

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be best to extract the new native code into a method and call it there. There is already much code in the viewWillAppear method. This PR should also be tested thoroughly in all kinds of navigation, like swiping, clicking back button, navigating from JS, since these options can return different values.

ios/RNSScreen.m Outdated Show resolved Hide resolved
@Ubax
Copy link
Contributor Author

Ubax commented Sep 28, 2021

@WoLewicki I added videos before and after

This reverts commit b57ab36.
ios/RNSScreen.m Outdated Show resolved Hide resolved
ios/RNSScreen.m Outdated Show resolved Hide resolved
@Ubax Ubax requested a review from WoLewicki September 30, 2021 11:59
@Ubax Ubax merged commit 826e08e into master Oct 8, 2021
@Ubax Ubax deleted the @ubax/fix-search-bar-active-after-transition branch October 8, 2021 08:54
@nandorojo
Copy link

@Ubax which version is this in?

@WoLewicki
Copy link
Member

@nandorojo Looking at the commit history, it will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants