Skip to content

Commit

Permalink
fix #248: update TS definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sodik82 committed Jul 20, 2022
1 parent 46293d7 commit 65512d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ declare module "react-native-popup-menu" {
};
backHandler?: boolean | Function;
skipInstanceCheck?: boolean;
children: React.ReactNode;
}

interface MenuProviderStatic extends React.ComponentClass<MenuProviderProps> {
Expand Down Expand Up @@ -51,6 +52,7 @@ declare module "react-native-popup-menu" {
onClose?(): void;

onBackdropPress?(): void;
children?: React.ReactNode;
}

export class Menu extends React.Component<MenuProps> {
Expand Down Expand Up @@ -87,6 +89,8 @@ declare module "react-native-popup-menu" {

onPress?(): void;
onAlternativeAction? (): void;
children?: React.ReactNode;
style?: StyleProp<ViewStyle>;
}

export const MenuTrigger: React.ComponentClass<MenuTriggerProps>;
Expand All @@ -100,6 +104,7 @@ declare module "react-native-popup-menu" {
renderOptionsContainer?: Function;
customStyles?: MenuOptionsCustomStyle;
testID?: string;
children?: React.ReactNode;
}

interface MenuOptionsCustomStyle extends MenuOptionCustomStyle {
Expand All @@ -123,6 +128,7 @@ declare module "react-native-popup-menu" {
style?: StyleProp<ViewStyle>;

onSelect?(): any;
children?: React.ReactNode;
}

interface MenuOptionCustomStyle {
Expand Down

1 comment on commit 65512d3

@hirbod
Copy link

@hirbod hirbod commented on 65512d3 Aug 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sodik82, can you release a new version please?

Please sign in to comment.