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)
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
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