antd-mobile-rn
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
21 lines (20 loc) • 688 B
TypeScript
import React from 'react';
import DrawerLayout from 'react-native-drawer-layout';
import { DrawerProps } from './PropsType';
export interface DrawerNativeProps extends DrawerProps {
drawerRef?: (el: DrawerLayout | null) => void;
drawerWidth?: number;
drawerBackgroundColor?: string;
}
export default class Drawer extends React.Component<DrawerNativeProps, any> {
static defaultProps: {
position: string;
open: boolean;
drawerWidth: number;
};
drawer: DrawerLayout | null;
componentDidMount(): void;
componentWillReceiveProps(nextProps: DrawerNativeProps): void;
onOpenChange(isOpen: boolean): void;
render(): JSX.Element;
}