UNPKG

@nativescript-community/ui-drawer

Version:

Easily add a side drawer (side menu) to your projects.

21 lines (20 loc) 863 B
import * as React from 'react'; import { GridLayoutAttributes, NSVElement, NativeScriptProps } from 'react-nativescript'; import { Color, View } from '@nativescript/core'; import { Drawer as NativeScriptDrawer } from '..'; export declare function registerDrawer(): void; interface DrawerAttributes extends GridLayoutAttributes { backdropColor?: Color; gestureEnabled?: boolean; leftDrawer?: View; mainContent?: View; } declare global { namespace JSX { interface IntrinsicElements { drawer: NativeScriptProps<DrawerAttributes, NativeScriptDrawer>; } } } export declare const Drawer: React.ForwardRefExoticComponent<Pick<NativeScriptProps<DrawerAttributes, NativeScriptDrawer>, "nodeRole" | "children" | "style" | "key" | keyof DrawerAttributes> & React.RefAttributes<NSVElement<NativeScriptDrawer>>>; export {};