Skip to content

Commit 133e46e

Browse files
committed
mobile: copy debug info to clipboard on triple-tap Home
1 parent 525d757 commit 133e46e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/mobile/app/(tabs)/_layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as Clipboard from "expo-clipboard";
12
import Constants from "expo-constants";
23
import { Tabs } from "expo-router";
34
import * as Updates from "expo-updates";
@@ -61,7 +62,9 @@ export default function TabLayout() {
6162
);
6263
if (tapTimestamps.current.length < 3) return;
6364
tapTimestamps.current = [];
64-
setDebugToast(getDebugInfo());
65+
const info = getDebugInfo();
66+
void Clipboard.setStringAsync(info);
67+
setDebugToast(`${info}\n\nCopied to clipboard`);
6568
if (toastTimer.current) clearTimeout(toastTimer.current);
6669
toastTimer.current = setTimeout(() => setDebugToast(null), 6000);
6770
}, []);

0 commit comments

Comments
 (0)