Skip to content

Commit

Permalink
🤖 Merge PR #56310 [react-native-material-menu] Add explicit types for…
Browse files Browse the repository at this point in the history
… children by @eps1lon

* [react-native-material-menu] Add explicit types for children

https://github.com/mxck/react-native-material-menu/blob/v1.0.0/src/Menu.js#L194-L226
https://github.com/mxck/react-native-material-menu/blob/v1.0.0/src/MenuItem.js#L20-L51

* Update types/react-native-material-menu/index.d.ts

Co-authored-by: Andrew Casey <amcasey@users.noreply.github.com>

Co-authored-by: Andrew Casey <amcasey@users.noreply.github.com>
  • Loading branch information
eps1lon and amcasey committed Oct 14, 2021
1 parent d079b75 commit 19ba34f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/react-native-material-menu/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
// Definitions by: hyun <https://github.com/KoreanThinker>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { ComponentClass, ReactElement, Component } from 'react';
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;
Expand Down

0 comments on commit 19ba34f

Please sign in to comment.