about summary refs log tree commit diff
path: root/src/view/screens/Settings/index.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-04 21:19:15 -0700
committerGitHub <noreply@github.com>2024-04-04 21:19:15 -0700
commit0433f8ad68c6778d79d97b35f26ca03ffa9b0db9 (patch)
tree30cb46a2ece7d23c31dafa6461c360242cfed411 /src/view/screens/Settings/index.tsx
parent101d1589bfdc12e38284b546e57a8ec5f0ee140d (diff)
downloadvoidsky-0433f8ad68c6778d79d97b35f26ca03ffa9b0db9.tar.zst
migrate to `expo-clipboard` (#3419)
* replace package

* replace usages
Diffstat (limited to 'src/view/screens/Settings/index.tsx')
-rw-r--r--src/view/screens/Settings/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/Settings/index.tsx b/src/view/screens/Settings/index.tsx
index 790ce5ee9..830a73ff2 100644
--- a/src/view/screens/Settings/index.tsx
+++ b/src/view/screens/Settings/index.tsx
@@ -10,13 +10,13 @@ import {
   View,
   ViewStyle,
 } from 'react-native'
+import {setStringAsync} from 'expo-clipboard'
 import {
   FontAwesomeIcon,
   FontAwesomeIconStyle,
 } from '@fortawesome/react-native-fontawesome'
 import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
-import Clipboard from '@react-native-clipboard/clipboard'
 import {useFocusEffect, useNavigation} from '@react-navigation/native'
 import {useQueryClient} from '@tanstack/react-query'
 
@@ -245,7 +245,7 @@ export function SettingsScreen({}: Props) {
   }, [onboardingDispatch, _])
 
   const onPressBuildInfo = React.useCallback(() => {
-    Clipboard.setString(
+    setStringAsync(
       `Build version: ${AppInfo.appVersion}; Platform: ${Platform.OS}`,
     )
     Toast.show(_(msg`Copied build version to clipboard`))