PressPhaseEvent
Press-in, press-out and long press from a Pressable.
Utilização
Create routes and tabs
Este tipo é usado por 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>
);
}Declaração do tipo
export interface PressPhaseEvent
extends KuitoEvent<'pressin' | 'pressout' | 'longpress'>, TouchLocation {}Membros 7
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
type | "pressin" | "pressout" | "longpress" | Sim | — |
target | unknown | Sim | — |
isTrusted | boolean | Sim | — |
locationX | number | Sim | — |
locationY | number | Sim | — |
pageX | number | Sim | — |
pageY | number | Sim | — |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.