UNPKG

@crossed/styled

Version:

A universal & performant styling library for React Native, Next.js & React

34 lines 1.38 kB
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import type { PressableProps } from 'react-native'; type PropsOverWrite = 'onPressIn' | 'onPressOut' | 'onHoverIn' | 'onHoverOut' | 'onFocus' | 'onBlur' | 'disabled' | 'focusable'; export declare const useInteraction: (props?: Pick<PressableProps, PropsOverWrite> & { active?: boolean; hover?: boolean; focus?: boolean; }) => { state: { active: boolean; hover: boolean; focus: boolean; }; props: { onPressIn: (event: import("react-native").GestureResponderEvent) => void; onPressOut: (event: import("react-native").GestureResponderEvent) => void; onHoverIn: (event: import("react-native").MouseEvent) => void; onHoverOut: (event: import("react-native").MouseEvent) => void; onBlur: (event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void; onFocus: (event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void; disabled?: null | boolean | undefined; focusable?: boolean | undefined; active?: boolean; hover?: boolean; focus?: boolean; }; }; export {}; //# sourceMappingURL=useInteraction.d.ts.map