PressPhaseEvent
Press-in, press-out and long press from a Pressable.
Usage
Create routes and tabs
This type is used by 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>
);
}Type declaration
export interface PressPhaseEvent
extends KuitoEvent<'pressin' | 'pressout' | 'longpress'>, TouchLocation {}Members 7
| Name | Type | Required | Description |
|---|---|---|---|
type | "pressin" | "pressout" | "longpress" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
locationX | number | Yes | — |
locationY | number | Yes | — |
pageX | number | Yes | — |
pageY | number | Yes | — |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.