react-native-bottom-sheet-behavior icon indicating copy to clipboard operation
react-native-bottom-sheet-behavior copied to clipboard

Question about height in ScrollingAppBarLayout

Open DanielMartini opened this issue 8 years ago • 1 comments

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

DanielMartini avatar May 02 '17 12:05 DanielMartini

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.

cesardeazevedo avatar May 04 '17 10:05 cesardeazevedo