Merge pull request #106 from TheAlmightyBob/TypeDeclarations

Fixed errors in type declarations
This commit is contained in:
Stanislav Miklik 2018-06-12 10:28:47 +02:00 committed by GitHub
commit 6b9672ff4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}