mirror of
https://github.com/zhigang1992/react-native-bottom-sheet.git
synced 2026-06-15 02:19:08 +08:00
1.1 KiB
1.1 KiB
id, title, slug
| id | title | slug |
|---|---|---|
| props | Props | /modal/props |
Bottom Sheet Modal inherits all Bottom Sheet props except for animateOnMount & containerHeight and also it introduces its own props:
Configuration
name
Modal name to help identify the modal for later on.
| type | default | required |
|---|---|---|
| string | generated unique key |
NO |
stackBehavior
Available only on v3, for now.
Defines the stack behavior when modal mounts.
pushit will mount the modal on top of current modal.replaceit will minimize the current modal then mount the modal.
| type | default | required |
|---|---|---|
| 'push' | 'replace' | 'replace' | NO |
dismissOnPanDown
Dismiss modal when panning down.
| type | default | required |
|---|---|---|
| boolean | true | NO |
Callbacks
onDismiss
Callback when the modal dismissed.
type onDismiss = () => void;
| type | default | required |
|---|---|---|
| function | null | NO |