Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
997 B · 35 lines
TypeScript
at commit 5efae600
123456789101112131415161718192021222324252627282930313233343536import React from 'react'import {ColorValue, NativeSyntheticEvent} from 'react-native'
export type BottomSheetState = 'closed' | 'closing' | 'open' | 'opening'
export enum BottomSheetSnapPoint { Hidden, Partial, Full,}
export type BottomSheetAttemptDismissEvent = NativeSyntheticEvent<object>export type BottomSheetSnapPointChangeEvent = NativeSyntheticEvent<{ snapPoint: BottomSheetSnapPoint}>export type BottomSheetStateChangeEvent = NativeSyntheticEvent<{ state: BottomSheetState}>
export interface BottomSheetViewProps { children: React.ReactNode cornerRadius?: number preventDismiss?: boolean preventExpansion?: boolean backgroundColor?: ColorValue containerBackgroundColor?: ColorValue disableDrag?: boolean
minHeight?: number maxHeight?: number
onAttemptDismiss?: (event: BottomSheetAttemptDismissEvent) => void onSnapPointChange?: (event: BottomSheetSnapPointChangeEvent) => void onStateChange?: (event: BottomSheetStateChangeEvent) => void}