Merge pull request #106 from TheAlmightyBob/TypeDeclarations
Fixed errors in type declarations
This commit is contained in:
commit
6b9672ff4e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue