diff options
author | Hailey <me@haileyok.com> | 2024-04-04 21:19:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:19:15 -0700 |
commit | 0433f8ad68c6778d79d97b35f26ca03ffa9b0db9 (patch) | |
tree | 30cb46a2ece7d23c31dafa6461c360242cfed411 /src/lib/sharing.ts | |
parent | 101d1589bfdc12e38284b546e57a8ec5f0ee140d (diff) | |
download | voidsky-0433f8ad68c6778d79d97b35f26ca03ffa9b0db9.tar.zst |
migrate to `expo-clipboard` (#3419)
* replace package * replace usages
Diffstat (limited to 'src/lib/sharing.ts')
-rw-r--r-- | src/lib/sharing.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/sharing.ts b/src/lib/sharing.ts index c50a2734a..b59e3f994 100644 --- a/src/lib/sharing.ts +++ b/src/lib/sharing.ts @@ -1,6 +1,6 @@ import {Share} from 'react-native' // import * as Sharing from 'expo-sharing' -import Clipboard from '@react-native-clipboard/clipboard' +import {setStringAsync} from 'expo-clipboard' import {isAndroid, isIOS} from 'platform/detection' import * as Toast from '#/view/com/util/Toast' @@ -19,7 +19,7 @@ export async function shareUrl(url: string) { } else { // React Native Share is not supported by web. Web Share API // has increasing but not full support, so default to clipboard - Clipboard.setString(url) + setStringAsync(url) Toast.show('Copied to clipboard') } } |