UNPKG

616 BTypeScriptView Raw
1import * as React from 'react';
2import { PressableProps } from 'react-native';
3export declare type Props = PressableProps & {
4 pressColor?: string;
5 pressOpacity?: number;
6 children: React.ReactNode;
7};
8/**
9 * PlatformPressable provides an abstraction on top of TouchableNativeFeedback and
10 * TouchableOpacity to handle platform differences.
11 *
12 * On Android, you can pass the props of TouchableNativeFeedback.
13 * On other platforms, you can pass the props of TouchableOpacity.
14 */
15export default function PlatformPressable({ android_ripple, pressColor, pressOpacity, style, ...rest }: Props): JSX.Element;