1 | import * as React from 'react';
|
2 | import { TouchableWithoutFeedback, ViewStyle, StyleProp, GestureResponderEvent } from 'react-native';
|
3 | declare type Props = React.ComponentPropsWithRef<typeof TouchableWithoutFeedback> & {
|
4 | |
5 |
|
6 |
|
7 | borderless?: boolean;
|
8 | |
9 |
|
10 |
|
11 |
|
12 | background?: Object;
|
13 | |
14 |
|
15 |
|
16 | centered?: boolean;
|
17 | |
18 |
|
19 |
|
20 | disabled?: boolean;
|
21 | |
22 |
|
23 |
|
24 | onPress?: (e: GestureResponderEvent) => void;
|
25 | |
26 |
|
27 |
|
28 | onLongPress?: (e: GestureResponderEvent) => void;
|
29 | |
30 |
|
31 |
|
32 | rippleColor?: string;
|
33 | |
34 |
|
35 |
|
36 | underlayColor?: string;
|
37 | |
38 |
|
39 |
|
40 | children: React.ReactNode;
|
41 | style?: StyleProp<ViewStyle>;
|
42 | |
43 |
|
44 |
|
45 | theme: ReactNativePaper.Theme;
|
46 | };
|
47 | declare const _default: React.ComponentType<Pick<import("react-native").TouchableWithoutFeedbackProps & React.RefAttributes<TouchableWithoutFeedback> & {
|
48 | |
49 |
|
50 |
|
51 | borderless?: boolean | undefined;
|
52 | |
53 |
|
54 |
|
55 |
|
56 | background?: Object | undefined;
|
57 | |
58 |
|
59 |
|
60 | centered?: boolean | undefined;
|
61 | |
62 |
|
63 |
|
64 | disabled?: boolean | undefined;
|
65 | |
66 |
|
67 |
|
68 | onPress?: ((e: GestureResponderEvent) => void) | undefined;
|
69 | /**
|
70 | * Function to execute on long press.
|
71 | */
|
72 | onLongPress?: ((e: GestureResponderEvent) => void) | undefined;
|
73 | /**
|
74 | * Color of the ripple effect (Android >= 5.0 and Web).
|
75 | */
|
76 | rippleColor?: string | undefined;
|
77 | /**
|
78 | * Color of the underlay for the highlight effect (Android < 5.0 and iOS).
|
79 | */
|
80 | underlayColor?: string | undefined;
|
81 | /**
|
82 | * Content of the `TouchableRipple`.
|
83 | */
|
84 | children: React.ReactNode;
|
85 | style?: StyleProp<ViewStyle>;
|
86 | /**
|
87 | * @optional
|
88 | */
|
89 | theme: ReactNativePaper.Theme;
|
90 | }, keyof import("react-native").TouchableWithoutFeedbackProps | "background" | "borderless" | "rippleColor" | "underlayColor" | "centered" | keyof React.RefAttributes<TouchableWithoutFeedback>> & {
|
91 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
92 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").TouchableWithoutFeedbackProps & React.RefAttributes<TouchableWithoutFeedback> & {
|
93 | /**
|
94 | * Whether to render the ripple outside the view bounds.
|
95 | */
|
96 | borderless?: boolean | undefined;
|
97 | /**
|
98 | * Type of background drawabale to display the feedback (Android).
|
99 | * https://reactnative.dev/docs/touchablenativefeedback#background
|
100 | */
|
101 | background?: Object | undefined;
|
102 | /**
|
103 | * Whether to start the ripple at the center (Web).
|
104 | */
|
105 | centered?: boolean | undefined;
|
106 | /**
|
107 | * Whether to prevent interaction with the touchable.
|
108 | */
|
109 | disabled?: boolean | undefined;
|
110 | /**
|
111 | * Function to execute on press. If not set, will cause the touchable to be disabled.
|
112 | */
|
113 | onPress?: ((e: GestureResponderEvent) => void) | undefined;
|
114 | /**
|
115 | * Function to execute on long press.
|
116 | */
|
117 | onLongPress?: ((e: GestureResponderEvent) => void) | undefined;
|
118 | /**
|
119 | * Color of the ripple effect (Android >= 5.0 and Web).
|
120 | */
|
121 | rippleColor?: string | undefined;
|
122 | /**
|
123 | * Color of the underlay for the highlight effect (Android < 5.0 and iOS).
|
124 | */
|
125 | underlayColor?: string | undefined;
|
126 | /**
|
127 | * Content of the `TouchableRipple`.
|
128 | */
|
129 | children: React.ReactNode;
|
130 | style?: StyleProp<ViewStyle>;
|
131 | /**
|
132 | * @optional
|
133 | */
|
134 | theme: ReactNativePaper.Theme;
|
135 | }> & {
|
136 | ({ style, background: _background, borderless, disabled: disabledProp, rippleColor, underlayColor: _underlayColor, children, theme, ...rest }: Props): JSX.Element;
|
137 | /**
|
138 | * Whether ripple effect is supported.
|
139 | */
|
140 | supported: boolean;
|
141 | }, {}>;
|
142 | export default _default;
|
143 |
|
\ | No newline at end of file |