Skip to content

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

Closed
SudoPlz wants to merge 14 commits into
wix:masterfrom
SudoPlz:master
Closed

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

Conversation

@SudoPlz
Copy link
Copy Markdown
Contributor

@SudoPlz SudoPlz commented Mar 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.

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)
@SudoPlz
Copy link
Copy Markdown
Contributor Author

SudoPlz commented Apr 30, 2018

Closed in favour of #3129 since I want to add more features on master, and I can't wait for wix to review this.

@SudoPlz SudoPlz closed this Apr 30, 2018
@alexsmartens
Copy link
Copy Markdown

alexsmartens commented May 8, 2018

Hi,
any updates on this feature?

@wix wix locked as resolved and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants