* * @param detached * @returns * * @description * In case the modal is detached, we need to add some extra props to the modal to make it look like a detached modal.
(detached: boolean)
| 132 | */ |
| 133 | |
| 134 | function getDetachedProps(detached: boolean) { |
| 135 | if (detached) { |
| 136 | return { |
| 137 | detached: true, |
| 138 | bottomInset: 46, |
| 139 | style: { marginHorizontal: 16, overflow: 'hidden' }, |
| 140 | } as Partial<BottomSheetModalProps>; |
| 141 | } |
| 142 | return {} as Partial<BottomSheetModalProps>; |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * ModalHeader |