diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-07-25 18:31:42 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-07-25 18:31:42 -0500 |
commit | af55a89758fc6d44896051b9ddd015a73b92e0f6 (patch) | |
tree | 5b9e4e226c6fc9210029325daf879cf627b0a1c2 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 3794eca88e13c3c292b0f64b1acb1169ecbeb83d (diff) | |
download | voidsky-af55a89758fc6d44896051b9ddd015a73b92e0f6.tar.zst |
Add share bottom-sheet to feed and thread
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index bd22ecf9a..30a64bc0e 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -21,9 +21,11 @@ function iter<T>(n: number, fn: (_i: number) => T): Array<T> { export const PostThreadItem = observer(function PostThreadItem({ item, onNavigateContent, + onPressShare, }: { item: PostThreadViewPostModel onNavigateContent: OnNavigateContent + onPressShare: (uri: string) => void }) { const record = item.record as unknown as bsky.Post.Record const hasEngagement = item.likeCount || item.repostCount @@ -169,12 +171,14 @@ export const PostThreadItem = observer(function PostThreadItem({ {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> |