1 | import { Animated, TouchableOpacityProps as RNTouchableOpacityProps } from 'react-native';
|
2 | import type { GenericTouchableProps } from './GenericTouchableProps';
|
3 | import * as React from 'react';
|
4 | import { Component } from 'react';
|
5 |
|
6 |
|
7 |
|
8 | export type TouchableOpacityProps = RNTouchableOpacityProps & GenericTouchableProps & {
|
9 | useNativeAnimations?: boolean;
|
10 | };
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export default class TouchableOpacity extends Component<TouchableOpacityProps> {
|
17 | static defaultProps: {
|
18 | activeOpacity: number;
|
19 | delayLongPress: number;
|
20 | extraButtonProps: {
|
21 | rippleColor: string;
|
22 | exclusive: boolean;
|
23 | };
|
24 | };
|
25 | getChildStyleOpacityWithDefault: () => number;
|
26 | opacity: Animated.Value;
|
27 | setOpacityTo: (value: number, duration: number) => void;
|
28 | onStateChange: (_from: number, to: number) => void;
|
29 | render(): React.JSX.Element;
|
30 | }
|