cesardeazevedo / react-native-bottom-sheet-behavior

react-native wrapper for android BottomSheetBehavior
MIT License
1.16k stars 114 forks source link

Question about height in ScrollingAppBarLayout #24

Open DanielMartini opened 7 years ago

DanielMartini commented 7 years ago

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 commented 7 years ago

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.