1 | import { Component } from 'react';
|
2 | import { GenericTouchableProps } from './GenericTouchable';
|
3 | import { TouchableHighlightProps, ColorValue } from 'react-native';
|
4 | interface State {
|
5 | extraChildStyle: null | {
|
6 | opacity?: number;
|
7 | };
|
8 | extraUnderlayStyle: null | {
|
9 | backgroundColor?: ColorValue;
|
10 | };
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | export default class TouchableHighlight extends Component<TouchableHighlightProps & GenericTouchableProps, State> {
|
16 | static defaultProps: {
|
17 | activeOpacity: number;
|
18 | delayPressOut: number;
|
19 | underlayColor: string;
|
20 | delayLongPress: number;
|
21 | extraButtonProps: {
|
22 | rippleColor: string;
|
23 | };
|
24 | };
|
25 | constructor(props: TouchableHighlightProps & GenericTouchableProps);
|
26 | showUnderlay: () => void;
|
27 | hasPressHandler: () => (((event: import("react-native").GestureResponderEvent) => void) & (() => void)) | undefined;
|
28 | hideUnderlay: () => void;
|
29 | renderChildren(): JSX.Element;
|
30 | onStateChange: (_from: number, to: number) => void;
|
31 | render(): JSX.Element;
|
32 | }
|
33 | export {};
|