Fixed errors in type declarations:

- “customStyle” should be “customStyles”
- MenuOptionProps should have a style prop
This commit is contained in:
Caleb Clarke 2018-06-11 20:35:04 -07:00
parent 90da176bef
commit a384c7cea8
1 changed files with 6 additions and 4 deletions

10
src/index.d.ts vendored
View File

@ -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 <momocraft@gmail>
*/
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<ViewStyle>;
customStyle?: {
customStyles?: {
menuProviderWrapper?: StyleProp<ViewStyle>;
backdrop?: StyleProp<ViewStyle>;
};
@ -109,6 +109,8 @@ declare module 'react-native-popup-menu' {
disableTouchable?: boolean;
customStyles?: MenuOptionCustomStyle;
style?: StyleProp<ViewStyle>;
onSelect?(): any;
}