1.0.10 • Published 5 months ago

@types/react-native-material-menu v1.0.10

Weekly downloads
1,856
License
MIT
Repository
github
Last release
5 months ago

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

Credits

These definitions were written by hyun.

1.0.10

5 months ago

1.0.9

6 months ago

1.0.8

7 months ago

1.0.7

8 months ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago