mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-05 16:04:43 +00:00
* feat(plugins): support modal body layout, scrolling and clipboard actions * fix(app): keep native scroll dependencies out of web imports * fix(nix): sync dependency hash for plugin native types * test(plugins): express modal QA as user journeys
7 lines
266 B
TypeScript
7 lines
266 B
TypeScript
export async function copyText(text: string): Promise<void> {
|
|
const { setStringAsync } = require("expo-clipboard") as typeof import("expo-clipboard");
|
|
if (!(await setStringAsync(text))) {
|
|
throw new Error("Clipboard copy was denied or is unavailable");
|
|
}
|
|
}
|