装包:
npx expo install expo-clipboard
import * as Clipboard from 'expo-clipboard'
const handleCopy = async (text) => {
awai服务器托管网t Clipboard.setStringAsync(text)
Toast.show('复制成功', {
duration: 3000,
position: Toast.positions.CENTER,
})
}
参考链接:
https://docs.expo.dev/versions/latest/sdk/clipboard/
https://www.npmjs.com/package/expo-clipboard
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http:/服务器托管网/www.fwqtg.net