Fixed errors in type declarations:
- “customStyle” should be “customStyles” - MenuOptionProps should have a style prop
This commit is contained in:
parent
90da176bef
commit
a384c7cea8
|
@ -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