···11import React, {useRef} from 'react'
22import {
33+ Share,
34 StyleProp,
45 StyleSheet,
56 Text,
···1213import RootSiblings from 'react-native-root-siblings'
1314import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
1415import {colors} from '../../lib/styles'
1616+import {toShareUrl} from '../../lib/strings'
1517import {useStores} from '../../../state'
1616-import {SharePostModel, ConfirmModel} from '../../../state/models/shell-ui'
1818+import {ConfirmModel} from '../../../state/models/shell-ui'
17191820export interface DropdownItem {
1921 icon?: IconProp
···9395 icon: 'share',
9496 label: 'Share...',
9597 onPress() {
9696- store.shell.openModal(new SharePostModel(itemHref))
9898+ Share.share({url: toShareUrl(itemHref)})
9799 },
98100 },
99101 isAuthor
-1
src/view/com/util/Link.tsx
···1010} from 'react-native'
1111import {useStores} from '../../../state'
1212import {RootStoreModel} from '../../../state'
1313-import {LinkActionsModel} from '../../../state/models/shell-ui'
14131514export const Link = observer(function Link({
1615 style,