@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 14 lines 467 Bytes
Raw
1 import { requireNativeModule } from "expo";
2 import type { SharingOptions } from "expo-sharing";
3
4 const NativeControls = requireNativeModule<{
5 shareFileFromSource(uri: string, title: string, sourceIdentifier: string): Promise<void>;
6 }>("T3NativeControls");
7
8 export function shareFileFromSource(
9 uri: string,
10 options: SharingOptions,
11 sourceIdentifier: string,
12 ) {
13 return NativeControls.shareFileFromSource(uri, options.dialogTitle ?? "", sourceIdentifier);
14 }