Skip to content

Re: Re: Re: Now allowing the custom nav bar to take up the whole space on iOS #3129

Closed
SudoPlz wants to merge 14 commits into
wix:masterfrom
SudoPlz:feature/nav_bar_full_width
Closed

Re: Re: Re: Now allowing the custom nav bar to take up the whole space on iOS #3129
SudoPlz wants to merge 14 commits into
wix:masterfrom
SudoPlz:feature/nav_bar_full_width

Conversation

@SudoPlz
Copy link
Copy Markdown
Contributor

@SudoPlz SudoPlz commented Apr 30, 2018

This is the third attempt to get this merged.
The first attempt was #2306 it got merged, and then it got reverted.
The second time (#2620) it got merged again but it's not in master yet and I have no idea why.

This is my last attempt (and it now lives in a separate branch so that I can add more functionality on master without messing with this PR)

I added normal buttons to the custom top bar screen on the example project, as a show case and in order to prove that this pr works fine.

The CustomTitleView is NOT positioned above the left or right buttons as you can see here:

Please get this sorted out, or if you don't think that's a good PR please let me know why so that I can fix it.

Thank you

krystofcelba and others added 14 commits January 23, 2018 03:19
1. Rename `DevCommandsHandlerProxy` to `DevHelperProxy` so it reflects the changes in RN. See facebook/react-native@d19afc7 .
2. Add few comments to show which code is used on `RN >= 0.52` and which on `RN <= 0.51`.
The custom nav bar on iOS was really just a custom view applied to the title of the navigation bar.
There were problems with this approach, because the navigation bar messes up the frame of the title very frequently, especially when the orientation is changing. That behaviour is accepted when the title is a label, but not when we have a custom component.

With this pull request the custom nav bar component can take up the full width of the navigation bar, no matter what orientation we're at.
Support for RN 52 (before getting merged in official wix repo)
@stale
Copy link
Copy Markdown

stale Bot commented Jun 14, 2018

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the 🏚 stale label Jun 14, 2018
@stale
Copy link
Copy Markdown

stale Bot commented Jun 21, 2018

The issue has been closed for inactivity.

@stale stale Bot closed this Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants