@100mslive/react-native-room-kit
Version:
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
33 lines • 1.15 kB
TypeScript
import * as React from 'react';
import type { ReactNativeModal } from 'react-native-modal';
import type { StyleProp, TextProps, TouchableOpacityProps, ViewStyle } from 'react-native';
type WithRequired<T, K extends keyof T> = T & {
[P in K]-?: T[P];
};
export type BottomSheetProps = WithRequired<Partial<ReactNativeModal['props']>, 'isVisible'> & {
dismissModal(): void;
containerStyle?: StyleProp<ViewStyle>;
bottomOffsetSpace?: number;
fullWidth?: boolean;
};
export declare const BottomSheet: React.FC<BottomSheetProps> & {
Header: React.FC<HeaderProps>;
Divider: React.FC<BottomSheetDividerProps>;
};
interface HeaderProps {
dismissModal(): void;
heading: string;
subheading?: string;
headingTestID?: TextProps['testID'];
subheadingTestID?: TextProps['testID'];
closeIconTestID?: TouchableOpacityProps['testID'];
}
interface BottomSheetDividerProps {
style?: StyleProp<ViewStyle>;
}
export declare const useBottomSheetActions: () => {
registerOnModalHideAction: (action: () => void) => void;
clearOnModalHideAction: () => void;
};
export {};
//# sourceMappingURL=BottomSheet.d.ts.map