@nativescript-community/ui-persistent-bottomsheet
Version:
NativeScript plugin that allows you to easily add a persistent bottomsheet to your projects.
28 lines (27 loc) • 1.2 kB
TypeScript
import * as React from 'react';
import { GridLayoutAttributes, NSVElement, NativeScriptProps } from 'react-nativescript';
import { Color, View } from '@nativescript/core';
import { PersistentBottomSheet as NativeScriptBottomSheet } from '..';
import { PanGestureHandlerOptions } from '@nativescript-community/gesturehandler';
export declare function registerDrawer(): void;
interface BottomSheetAttributes extends GridLayoutAttributes {
stepIndex?: number;
steps?: number[];
backdropColor?: Color | string;
gestureEnabled?: boolean;
bottomSheet?: View;
scrollViewId?: string;
panGestureOptions?: PanGestureHandlerOptions & {
gestureId?: number;
};
onStepIndexChange?(args: any): void;
}
declare global {
namespace JSX {
interface IntrinsicElements {
bottomsheet: NativeScriptProps<BottomSheetAttributes, NativeScriptBottomSheet>;
}
}
}
export declare const BottomSheet: React.ForwardRefExoticComponent<Pick<NativeScriptProps<BottomSheetAttributes, NativeScriptBottomSheet>, "nodeRole" | "children" | "style" | "key" | keyof BottomSheetAttributes> & React.RefAttributes<NSVElement<NativeScriptBottomSheet>>>;
export {};