Add share bottom-sheet to feed and thread
This commit is contained in:
parent
3794eca88e
commit
af55a89758
14 changed files with 574 additions and 34 deletions
|
@ -12,9 +12,11 @@ import {AVIS} from '../../lib/assets'
|
|||
export const FeedItem = observer(function FeedItem({
|
||||
item,
|
||||
onNavigateContent,
|
||||
onPressShare,
|
||||
}: {
|
||||
item: FeedViewItemModel
|
||||
onNavigateContent: OnNavigateContent
|
||||
onPressShare: (uri: string) => void
|
||||
}) {
|
||||
const record = item.record as unknown as bsky.Post.Record
|
||||
|
||||
|
@ -118,12 +120,14 @@ export const FeedItem = observer(function FeedItem({
|
|||
{item.likeCount}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
<View style={styles.ctrl}>
|
||||
<TouchableOpacity
|
||||
style={styles.ctrl}
|
||||
onPress={() => onPressShare(item.uri)}>
|
||||
<FontAwesomeIcon
|
||||
style={styles.ctrlIcon}
|
||||
icon="share-from-square"
|
||||
/>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue