-
Notifications
You must be signed in to change notification settings - Fork 24k
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
[NavigationExperimental] NavigationHeader should let the user override container styles #7204
Comments
We cannot use flexbox because of the fancy animations that people expect in the header. We are missing some logic to properly measure the title and re-position things accordingly. At this point, if you want a flexbox based header, I think it makes the most sense to fork the existing header and publish an independent version. The prop you want to add makes sense, to allow overriding of styles like marginTop, which are shared between the header items. Feel free to send in a PR with that additional prop, and tag me so I don't miss it. Thanks! |
Done, thanks for the quick feedback and the explanation on why flexbox is currently not used. |
Summary: Implements: facebook#7204 Pinging ericvicenti for review. Closes facebook#7214 Differential Revision: D3219306 Pulled By: ericvicenti fb-gh-sync-id: becd1dada2557b7fb2c345bac2098094fa6d2144 fbshipit-source-id: becd1dada2557b7fb2c345bac2098094fa6d2144
Summary: Implements: facebook#7204 Pinging ericvicenti for review. Closes facebook#7214 Differential Revision: D3219306 Pulled By: ericvicenti fb-gh-sync-id: becd1dada2557b7fb2c345bac2098094fa6d2144 fbshipit-source-id: becd1dada2557b7fb2c345bac2098094fa6d2144
There is an issue on Android with the It seems like if you render any absolutely positioned content using I expect to see the button rendered on Android but cut off because there is no support for |
Summary: Implements: facebook#7204 Pinging ericvicenti for review. Closes facebook#7214 Differential Revision: D3219306 Pulled By: ericvicenti fb-gh-sync-id: becd1dada2557b7fb2c345bac2098094fa6d2144 fbshipit-source-id: becd1dada2557b7fb2c345bac2098094fa6d2144
The original issue seems to be resolved here so this issue has gotten a bit unwieldy and is discussing multiple things. I'm going to close this issue but if there's still a bug in the navigation library then I encourage people to open a new issue with repro code for it. |
Right now, the
NavigationHeader
let the user overrides theappbar
style but not the following ones which are hardcoded and cant be changed:I am honestly not sure why left / title / center are not leveraging flexbox and are positioned in absolute, probably to take care of the title position and size which might follow strictly IOS guideline however it does have some drawbacks:
I would like to propose to add a
subviewStyles
prop that would contain style properties fortitle
,left
andright
so people can reset and change the default styles for those containers.I also wonder if using flexbox would not be more flexible out of the box for people.
@ericvicenti any though ?
Thanks
The text was updated successfully, but these errors were encountered: