-
Notifications
You must be signed in to change notification settings - Fork 114
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
STATE_HIDDEN not working #26
Comments
Hi, Thanks for report. There's a issue with the But you can set the STATE_HIDDEN on the componentDidMount() {
this.bottomSheet.setBottomSheetState(BottomSheetBehavior.STATE_HIDDEN)
}
render() {
<BottomSheetBehavior ref={ref => {this.bottomSheet = ref}}></BottomSheetBehavior>
} I also do not recommend you manage the bottom sheet state directly on the |
Thanks for the information! |
|
@mikeevstropov did you enabled |
@cesardeazevedo Yes. But im using NestedScrollView hideBottomSheet() {
if (this.bottomSheet)
this.bottomSheet.setBottomSheetState(
BottomSheetBehavior.STATE_HIDDEN
)
} <BottomSheetBehavior
hideable={true}
peekHeight={110}
ref={ref => this.bottomSheet = ref}>
<NestedScrollView ref={ref => this.nestedScroll = ref}>
{ child }
</NestedScrollView>
</BottomSheetBehavior> |
@cesardeazevedo Im sorry. Its my mistake. Method works correctly. |
STATE_HIDDEN renders the same view as STATE_COLLAPSED.
`<CoordinatorLayout style={{flex: 1}}>
<View style={{ flex: 1, backgroundColor: 'transparent' }}>
<BottomSheetBehavior
The text was updated successfully, but these errors were encountered: