react-native-gesture-handler
Version:
Experimental implementation of a new declarative API for gesture handling in react-native
26 lines (25 loc) • 888 B
TypeScript
import { Animated, TouchableOpacityProps } from 'react-native';
import { GenericTouchableProps } from './GenericTouchable';
import { Component } from 'react';
interface GHTouchableOpacityProps {
useNativeAnimations?: boolean;
}
/**
* TouchableOpacity bases on timing animation which has been used in RN's core
*/
export default class TouchableOpacity extends Component<TouchableOpacityProps & GenericTouchableProps & GHTouchableOpacityProps> {
static defaultProps: {
activeOpacity: number;
delayLongPress: number;
extraButtonProps: {
rippleColor: string;
exclusive: boolean;
};
};
getChildStyleOpacityWithDefault: () => number;
opacity: Animated.Value;
setOpacityTo: (value: number, duration: number) => void;
onStateChange: (_from: number, to: number) => void;
render(): JSX.Element;
}
export {};