@types/react-native-material-menu
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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

import { Component, ComponentClass, ReactElement, ReactNode } from "react";
import { StyleProp, TextProps, TextStyle, 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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10ts2.8
1.0.10ts2.9
1.0.61,793ts3.7
1.0.61,793ts3.8
1.0.61,793ts3.9
1.0.61,793ts4.0
1.0.61,793ts4.1
1.0.61,793ts4.2
1.0.61,793ts4.3
1.0.61,793ts4.4
1.0.10646ts5.7
1.0.10646ts5.6
1.0.10646latest
1.0.10646ts4.6
1.0.10646ts4.7
1.0.10646ts4.8
1.0.10646ts4.9
1.0.10646ts5.0
1.0.10646ts5.1
1.0.10646ts5.2
1.0.10646ts5.3
1.0.10646ts5.4
1.0.10646ts5.5
1.0.10646ts5.8
1.0.2222ts3.0
1.0.568ts3.6
1.0.322ts3.1
1.0.322ts3.2
1.0.322ts3.3
1.0.415ts3.4
1.0.415ts3.5
1.0.96ts4.5

Version History

VersionDownloads (Last 7 Days)Published
1.0.10646
1.0.96
1.0.80
1.0.70
1.0.61,793
1.0.568
1.0.415
1.0.322
1.0.2222
1.0.10
1.0.00

Package Sidebar

Install

npm i @types/react-native-material-menu

Weekly Downloads

2,772

Version

1.0.10

License

MIT

Unpacked Size

5.11 kB

Total Files

5

Last publish

Collaborators

  • types