-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathtypes.d.ts
More file actions
31 lines (26 loc) · 938 Bytes
/
types.d.ts
File metadata and controls
31 lines (26 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/// <reference types="react"/>
/// <reference types="react-native"/>
declare module "react-native-push-notification-popup" {
import { ReactElement, Component } from "react";
import { StyleProp, ViewStyle, ImageSourcePropType } from "react-native";
interface ContentOptionsBase {
appIconSource?: ImageSourcePropType;
appTitle?: string;
timeText?: string;
title?: string;
body?: string;
}
interface ShowOptions extends ContentOptionsBase {
onPress?: () => void;
slideOutTime?: number;
}
interface PushNotificationPopupProps {
renderPopupContent?: (options: ContentOptionsBase) => ReactElement;
shouldChildHandleResponderStart?: boolean;
shouldChildHandleResponderMove?: boolean;
isSkipStatusBarPadding?: boolean;
}
export default class ReactNativePushNotificationPopup extends Component<PushNotificationPopupProps, any> {
public show(options: ShowOptions): void;
}
}