Bluesky app fork with some witchin' additions 馃挮
witchsky.app
bluesky
fork
client
1import {type ColorValue, type NativeSyntheticEvent} from 'react-native'
2
3export type BottomSheetState = 'closed' | 'closing' | 'open' | 'opening'
4
5export enum BottomSheetSnapPoint {
6 Hidden,
7 Partial,
8 Full,
9}
10
11export type BottomSheetAttemptDismissEvent = NativeSyntheticEvent<object>
12export type BottomSheetSnapPointChangeEvent = NativeSyntheticEvent<{
13 snapPoint: BottomSheetSnapPoint
14}>
15export type BottomSheetStateChangeEvent = NativeSyntheticEvent<{
16 state: BottomSheetState
17}>
18
19export interface BottomSheetViewProps {
20 children: React.ReactNode
21 cornerRadius?: number
22 preventDismiss?: boolean
23 preventExpansion?: boolean
24 backgroundColor?: ColorValue
25 containerBackgroundColor?: ColorValue
26 disableDrag?: boolean
27 sourceViewTag?: number
28
29 minHeight?: number
30 maxHeight?: number
31
32 onAttemptDismiss?: (event: BottomSheetAttemptDismissEvent) => void
33 onSnapPointChange?: (event: BottomSheetSnapPointChangeEvent) => void
34 onStateChange?: (event: BottomSheetStateChangeEvent) => void
35}