From a384c7cea8358ecb5d17964c5747f6e293fdd566 Mon Sep 17 00:00:00 2001 From: Caleb Clarke Date: Mon, 11 Jun 2018 20:35:04 -0700 Subject: [PATCH] =?UTF-8?q?Fixed=20errors=20in=20type=20declarations:=20-?= =?UTF-8?q?=20=E2=80=9CcustomStyle=E2=80=9D=20should=20be=20=E2=80=9Ccusto?= =?UTF-8?q?mStyles=E2=80=9D=20-=20MenuOptionProps=20should=20have=20a=20st?= =?UTF-8?q?yle=20prop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; }