-
Notifications
You must be signed in to change notification settings - Fork 66
/
index.d.ts
76 lines (67 loc) · 2.35 KB
/
index.d.ts
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { ViewStyle, LayoutAnimationConfig, StyleProp, Insets } from "react-native";
import { ReactNode } from "react";
export type KeyboardAccessoryViewRenderProp = ({
isKeyboardVisible,
}: {
isKeyboardVisible: boolean;
}) => ReactNode;
interface KeyboardAccessoryProps {
style?: StyleProp<ViewStyle>;
animateOn?: "ios" | "android" | "all" | "none";
animationConfig?: (() => LayoutAnimationConfig) | LayoutAnimationConfig;
alwaysVisible?: boolean;
bumperHeight?: number;
visibleOpacity?: number;
onKeyboardShowDelay?: boolean | number;
heightProperty?: 'height' | 'minHeight';
hiddenOpacity?: number;
hideBorder?: boolean;
inSafeAreaView?: boolean;
androidAdjustResize?: boolean;
avoidKeyboard?: boolean;
}
export interface KeyboardAccessoryViewProps
extends KeyboardAccessoryProps {
children: KeyboardAccessoryViewRenderProp | ReactNode;
}
export declare const KeyboardAccessoryView: React.ComponentType<KeyboardAccessoryViewProps>;
export type KeyboardAccessoryNavigationArrowDirection =
| "down"
| "up"
| "right"
| "left";
export interface KeyboardAccessoryNavigationProps
extends KeyboardAccessoryProps {
doneButtonTitle?: string;
tintColor?: string;
doneButton?: ReactNode;
nextButton?: ReactNode;
previousButton?: ReactNode;
infoContainer?: ReactNode;
doneDisabled?: boolean;
nextDisabled?: boolean;
previousDisabled?: boolean;
doneHidden?: boolean;
nextHidden?: boolean;
previousHidden?: boolean;
accessoryStyle?: StyleProp<ViewStyle>;
doneButtonStyle?: StyleProp<ViewStyle>;
doneButtonTitleStyle?: StyleProp<ViewStyle>;
infoMessageStyle?: StyleProp<ViewStyle>;
doneButtonHitslop?: number | Insets;
previousButtonStyle?: StyleProp<ViewStyle>;
nextButtonStyle?: StyleProp<ViewStyle>;
nextButtonDirection?: KeyboardAccessoryNavigationArrowDirection;
nextButtonHitslop?: number | Insets;
previousButtonDirection?: KeyboardAccessoryNavigationArrowDirection;
previousButtonHitslop?: number | Insets;
onDone?: () => void;
onNext?: () => void;
onPrevious?: () => void;
}
export declare const KeyboardAccessoryNavigation: React.ComponentType<KeyboardAccessoryNavigationProps>;
export interface KeyboardAwareTabBarComponentProps {
TabBarComponent: React.ComponentType<any>;
[x: string]: any;
}
export declare const KeyboardAwareTabBarComponent: React.ComponentType<KeyboardAwareTabBarComponentProps>;