PressEvent
The press event a Pressable's onPress receives: it bubbles, can be cancelled, and may carry the touch location.
Usage
Fade a view on entry or removal.
This type is used by Box
// Fade a view on entry or removal.
import { Box, fade, slide, spring } from 'kuito';
<Box enter={fade.and(slide.up(12))} exit={fade} layout={spring()} />;Type declaration
export interface PressEvent extends KuitoEvent<'press'>, Partial<TouchLocation> {
bubbles: boolean;
cancelable: boolean;
stopPropagation(): void;
preventDefault(): void;
}Members 11
| Name | Type | Required | Description |
|---|---|---|---|
bubbles | boolean | Yes | — |
cancelable | boolean | Yes | — |
stopPropagation | () => void | Yes | — |
preventDefault | () => void | Yes | — |
type | "press" | Yes | — |
target | unknown | Yes | — |
isTrusted | boolean | Yes | — |
locationX | number | No | — |
locationY | number | No | — |
pageX | number | No | — |
pageY | number | No | — |
stopPropagation — method signatures
Signatures
(): voidParameters
No parameters.
Returns
void
preventDefault — method signatures
Signatures
(): voidParameters
No parameters.
Returns
void
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.