PressPhaseEvent
Press-in, press-out and long press from a Pressable.
Verwendung
Create routes and tabs
Dieser Typ wird verwendet von Link
// app/(shows)/index.tsx
import { Link, Text, VStack, routes, type RouteOptions } from 'kuito';
export const options: RouteOptions = { title: 'Shows' };
export default function Shows() {
return (
<VStack gap={12} padding={20}>
<Link to={routes.show({ id: 42 })}>
<Text>Show 42</Text>
</Link>
</VStack>
);
}Typdeklaration
export interface PressPhaseEvent
extends KuitoEvent<'pressin' | 'pressout' | 'longpress'>, TouchLocation {}Mitglieder 7
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
type | "pressin" | "pressout" | "longpress" | Ja | — |
target | unknown | Ja | — |
isTrusted | boolean | Ja | — |
locationX | number | Ja | — |
locationY | number | Ja | — |
pageX | number | Ja | — |
pageY | number | Ja | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.