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: large header sizeToFit #670

Closed
wants to merge 1 commit into from
Closed

Conversation

WoLewicki
Copy link
Member

@WoLewicki WoLewicki commented Oct 19, 2020

Applied https://developer.apple.com/forums/thread/660745 solution suggested by @julian-baumann to make the large header appear on the Screen load. Should resolve #649 and #645.

@nickyleach
Copy link

Tried this patch but it seems like it's resizing the header back button instead of the title?

giphy-2

@WoLewicki
Copy link
Member Author

@nickyleach can you try and use the solution proposed here: #645 (comment)?

@dylancom
Copy link
Contributor

@nickyleach can you try and use the solution proposed here: #645 (comment)?

@WoLewicki the proposed solution is working for me.

@savelichalex
Copy link

@WoLewicki how can we help to merge it? We have to patch it in out code...

@WoLewicki
Copy link
Member Author

@savelichalex I am afraid the change proposed here was rather a quick workaround, not a solution to the problem, and so it might not be ever merged in order not to introduce any other bugs. I think it is better to apply #645 (comment) as it seems to consistently solve the problem.

@savelichalex
Copy link

@WoLewicki the thing is we apply both that workarounds to get proper behaviour. If you look at gif above, you may notice that when it go back to settings screens the header is folded, though it shouldn't (you could see proper behaviour in default iOS settings app), and the change from current PR helps us to fix such problem.

Should I open a new issue for that? Or there are other ways how we could solve it? We are ready to contribute.

@WoLewicki
Copy link
Member Author

I still don't get why you need this PR. #645 (comment) answers the issue of a folded header and this PR tries to do the same thing exactly.

@hirbod
Copy link
Contributor

hirbod commented Feb 17, 2021

@WoLewicki but what about Expo users? We need a native fix shipped with react-native-screens (if possible) to be included in SDK 41. Patching isn't an option for folks like me, because I love the managed experience. (Even though downsides are that I am sometimes handcuffed)

@WoLewicki
Copy link
Member Author

This PR is not a solution to the problem, rather a workaround, which can result in other bugs, so we most probably don't want to merge it unfortunately. I believe the real solution is the change of react-native implementation. If you need this with Expo managed workflow, can't you use the workarounds using JS code pointed in the connected issue?

@hirbod
Copy link
Contributor

hirbod commented Feb 17, 2021

None of them worked for me @WoLewicki

@WoLewicki
Copy link
Member Author

I have no easy solution for this then unfortunately. Probably when EAS comes live for everyone, it will be simpler to patch native code for managed workflow.

@WoLewicki
Copy link
Member Author

I am afraid not, only the one from this PR and the ones from the issues.

@tboba
Copy link
Member

tboba commented Feb 14, 2024

@WoLewicki I think this problem is already solved in screens (I've also double-checked Test1072 and I see that large header is expanded. This is possibly working because of this line -

[_controller setViewControllers:@[ [UIViewController new] ]];
), PR #202. Do you think we can close this PR? Or does it fix some corner case I can't see right now?

@WoLewicki WoLewicki closed this Mar 1, 2024
@tboba tboba deleted the @wolewicki/fix-large-header branch March 1, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants