UNPKG

714 BTypeScriptView Raw
1import type * as React from 'react';
2import type { PressableProps as PressableNativeProps, StyleProp, View, ViewStyle } from 'react-native';
3export declare type PressableStateCallbackType = {
4 hovered: boolean;
5 pressed: boolean;
6 focused: boolean;
7};
8export declare type PressableProps = Omit<PressableNativeProps, 'children' | 'style'> & {
9 children: React.ReactNode | ((state: PressableStateCallbackType) => React.ReactNode) | undefined;
10 style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
11};
12export declare const Pressable: React.ForwardRefExoticComponent<PressableProps & React.RefAttributes<View>>;
13//# sourceMappingURL=Pressable.d.ts.map
\No newline at end of file