Ir al contenido

TysEvent

Esta página aún no está disponible en tu idioma.

Type@tryyoursize/react-native

A window event, by type.

type TysEvent =
| { type: "ready"; product: string }
| { type: "open"; product: string }
| { type: "close"; product: string }
| { type: "size"; selection: SizeSelection }
| { type: "loaderror"; code: string; message: string };
const sub = addEventListener((e) => {
if (e.type === "size") setSize(e.selection.size);
if (e.type === "loaderror") console.warn(e.code);
});

¿Te ha resultado útil esta página?