You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drag only the top area of the draggableIcon to close Bottom Sheet instead of the whole content
false
closeOnPressMask
boolean
Press the area outside to close Bottom Sheet
true
closeOnPressBack
boolean
Press back android to close Bottom Sheet (Android only)
true
onClose
function
Callback function when Bottom Sheet has closed
null
onOpen
function
Callback function when Bottom Sheet has opened
null
customStyles
object
Custom style to Bottom Sheet
{}
keyboardAvoidingViewEnabled
boolean
Enable KeyboardAvoidingView
true (ios)
renderHeader
function
Method for rendering non-scrollable header of bottom sheet.
null
enabledInnerScrolling
boolean
Enable scrolling inner sheet
false
Available Custom Style
customStyles: {
wrapper: {...}, // The Root of Component (You can change the `backgroundColor` or any styles)
container: {...}, // The Container of Bottom Sheet
draggableIcon: {...} // The Draggable Icon (If you set closeOnDragDown to true)
}
Methods
Method Name
Description
open
Open Bottom Sheet
close
Close Bottom Sheet
snapTo
Animate Height
Note
If you combind RBSheet with react-native-gesture-handler, the components inside RBSheet will not fire onPress event on Android #37.
The demo source codes are in example folder.
License
This project is licensed under the MIT License - see the LICENSE.md file for details