-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
Ensure header elements are visible on iOS #668
Conversation
Adds ensureHeaderButtonsVisible method in RNScreens.m References issues software-mansion#432 and software-mansion#528.
Thanks for submitting the PR! The main problem with this method is that it assumes that 0.1-second time is enough for the buttons to align correctly after it. It may not be true for screens with more content in them or slower phones. You can see #528 (comment). Is it available for you to check if this 0.1-second time is always enough for this to work correctly? |
I can get back to you on this this week. It seems like after testing in the wild that 0.1 wasn't enough time when running CPU heavy transitions. |
Update to 0.5 from 0.1
So I see here that I've left it set at Other than that it should be good to go. |
I am not sure if we will want to merge it for now. It is very much a workaround, and with some randomness included, so I would be very hesitant about doing so. I will ping here when it is clear if we want to do it. And for now, I think you can leave it as it is 🎉 |
What is the status on this? @WoLewicki Can I do anything to help move this forward? |
@casperstr see my comment above. I don't think there is much more to be done about it. If someone wants to use it, he should patch-package it for now. I think we would need a deterministic solution in order to merge such a change. |
The native stack is currently unusable if header buttons are required. Do we have any path forward to patch this with a deterministic solution? |
I haven't found any other solution unfortunately, but I am open to contributions regarding this. |
Hi @zibs, thanks for your work here. I ran into this issue today and I was grateful to find this PR and discussion. @WoLewicki, I've submitted PR #902 containing a solution I came up with. Hope it's helpful! |
I'll close this since #902 is merged and should resolve the problem. Feel free to comment here if something is wrong. |
Adds ensureHeaderButtonsVisible method in RNScreens.m
References issues #432 and #528.
References and incorporates PR #644 as well
Thanks @WoLewicki!