react-navigation-stack
Version:
Stack navigator component for React Navigation
27 lines (26 loc) • 732 B
TypeScript
/**
* TouchableItem renders a touchable that looks native on both iOS and Android.
*
* It provides an abstraction on top of TouchableNativeFeedback and
* TouchableOpacity.
*
* On iOS you can pass the props of TouchableOpacity, on Android pass the props
* of TouchableNativeFeedback.
*/
import * as React from 'react';
import { ViewProps } from 'react-native';
declare type Props = ViewProps & {
pressColor: string;
disabled?: boolean;
borderless?: boolean;
delayPressIn?: number;
onPress?: () => void;
};
export default class TouchableItem extends React.Component<Props> {
static defaultProps: {
borderless: boolean;
pressColor: string;
};
render(): JSX.Element;
}
export {};