@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 13 lines 391 Bytes
Raw
1 import type { PasteEventPayload } from "expo-paste-input";
2 import { useCallback } from "react";
3
4 export function useNativePaste(onImages: (uris: ReadonlyArray<string>) => void) {
5 return useCallback(
6 (payload: PasteEventPayload) => {
7 if (payload.type === "images" && payload.uris && payload.uris.length > 0) {
8 onImages(payload.uris);
9 }
10 },
11 [onImages],
12 );
13 }