1.0.10 • Published 5 months ago
@types/react-native-material-menu v1.0.10
Installation
npm install --save @types/react-native-material-menu
Summary
This package contains type definitions for react-native-material-menu (https://github.com/mxck/react-native-material-menu).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-material-menu.
index.d.ts
// Type definitions for react-native-material-menu 1.0
// Project: https://github.com/mxck/react-native-material-menu
// Definitions by: hyun <https://github.com/KoreanThinker>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { ComponentClass, ReactElement, Component, ReactNode } from 'react';
import { StyleProp, TextStyle, TextProps, ViewStyle } from 'react-native';
export interface MenuProps {
button?: ReactElement | undefined;
children?: ReactNode;
testID?: string | undefined;
style?: StyleProp<ViewStyle> | undefined;
onHidden?: (() => void) | undefined;
animationDuration?: number | undefined;
}
export interface MenuItemProps {
children?: ReactNode;
disabled?: boolean | undefined;
testID?: string | undefined;
disabledTextColor?: string | undefined;
ellipsizeMode?: TextProps['ellipsizeMode'] | undefined;
onPress?: (() => void) | undefined;
style?: StyleProp<ViewStyle> | undefined;
textStyle?: TextStyle | undefined;
underlayColor?: string | undefined;
}
export interface MenuDividerProps {
color?: string | undefined;
}
export class MenuDivider extends Component<MenuDividerProps> {}
export class MenuItem extends Component<MenuItemProps> {}
export default class Menu extends Component<MenuProps> {
show: () => void;
hide: (onHidden?: () => void) => void;
}
Additional Details
- Last updated: Thu, 14 Oct 2021 18:01:24 GMT
- Dependencies: @types/react, @types/react-native
- Global values: none
Credits
These definitions were written by hyun.