diff --git a/src/index.d.ts b/src/index.d.ts index 685d41b..de2731b 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,10 +1,10 @@ /** - * TypeScript decleartion for https://github.com/instea/react-native-popup-menu + * TypeScript declaration for https://github.com/instea/react-native-popup-menu * * @author Wang Guan */ -declare module 'react-native-popup-menu' { - import * as React from 'react'; +declare module "react-native-popup-menu" { + import * as React from "react"; import { StyleProp, ViewStyle } from "react-native"; /** @@ -14,7 +14,7 @@ declare module 'react-native-popup-menu' { interface MenuProviderProps { style?: StyleProp; - customStyle?: { + customStyles?: { menuProviderWrapper?: StyleProp; backdrop?: StyleProp; }; @@ -109,6 +109,8 @@ declare module 'react-native-popup-menu' { disableTouchable?: boolean; customStyles?: MenuOptionCustomStyle; + style?: StyleProp; + onSelect?(): any; }