Files
react-native-paper/typings/components/Drawer.d.ts

22 lines
537 B
TypeScript

import * as React from 'react';
import { ViewProps } from 'react-native';
import { ThemeShape, IconSource } from '../types';
export interface ItemProps extends ViewProps {
label: string;
icon?: IconSource;
active?: boolean;
theme?: ThemeShape;
onPress?: () => void;
}
export declare class Item extends React.Component<ItemProps> {}
export interface SectionProps extends ViewProps {
children: React.ReactNode;
title?: string;
theme?: ThemeShape;
}
export declare class Section extends React.Component<SectionProps> {}