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

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 }