forked from kirgudkov/react-native-in-app-message
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
45 lines (39 loc) · 1.36 KB
/
Copy pathindex.d.ts
File metadata and controls
45 lines (39 loc) · 1.36 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
// @ts-ignore
import React from 'react';
// @ts-ignore
import {StyleProp, ViewStyle} from "react-native";
// @ts-ignore
import {PanGestureHandlerGestureEvent} from "react-native-gesture-handler";
export interface NotificationProperties {
blurType?: 'xlight' | 'light' | 'dark', // iOS Only, default - light
blurAmount?: number, // iOS Only, default - 7
tapticFeedback?: boolean, //iOS 10+ Only, default - false
showKnob?: boolean, // default - true
duration?: number, // default - 2000
autohide?: boolean, // default - true
text?: string,
style?: StyleProp<ViewStyle> | {}, // iOS Only for now
textColor?: string, // default - black
onPress?: () => void,
onShow?: () => void,
onHide?: () => void,
hideStatusBar?: boolean, // iOS only, default = true
onDragGestureEvent?: (event: PanGestureHandlerGestureEvent) => void,
onDragGestureHandlerStateChange?: (event: PanGestureHandlerGestureEvent) => void,
}
export class Notification extends React.Component<NotificationProperties, {}> {
static show: Function;
static hide: Function;
show: Function;
hide: Function;
}
export interface BlurProps {
blurType?: 'xlight' | 'light' | 'dark', // iOS Only
blurAmount?: number // iOS Only
style?: StyleProp<ViewStyle>
}
export class Blur extends React.Component<BlurProps, {}> {}
// iOS 10+ Only
export class TapticFeedback {
static impact: Function
}