react-native-navigation-bottom-sheet
Version:
A performant customizable bottom sheet component made on top of wix react-native-navigation library.
19 lines (18 loc) • 731 B
TypeScript
import type { RNNBottomSheetProps } from './types';
import BottomSheet from './BottomSheet';
import type { ComponentProvider } from 'react-native';
export default class RNNBottomSheet {
private static modalOpened;
private static registered;
private static bottomSheetName;
static getComponentName(): string;
static isOpened(): boolean;
static init(registerWithProvider?: (name: string, bottomSheet: typeof BottomSheet) => ComponentProvider): void;
/**
* Used only to showcase a support for multuple snap points.
* Probably useless in practise.
*/
static snapTo(index: number): void;
static openBottomSheet(props: RNNBottomSheetProps): void;
static closeBottomSheet(): void;
}