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

Question about height in ScrollingAppBarLayout #24

Open
DanielMartini opened this issue May 2, 2017 · 1 comment
Open

Question about height in ScrollingAppBarLayout #24

DanielMartini opened this issue May 2, 2017 · 1 comment

Comments

@DanielMartini
Copy link

It's possible to instead of giving a fixed height to the component, make it fit the content?

Im trying to implement https://github.com/ptnz/react-native-google-places-autocomplete/ a search bar that suggests places using google api, but it loads a view that fits the container when something is searched, it works correctly until it's inside the ScrollingAppBarLayout as it has to have a fixed height or leaving it empty means that will fit the entire window even if nothing is searched.

thanks

@cesardeazevedo
Copy link
Owner

That's indeed a limitation of both AppBars, i am still trying to approach a better way to render custom components inside AppBars, but it isn't easy as i thought, for now, it only works with Toolbars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants