Skip to content

Commit 59079ec

Browse files
committed
values are (url,title) OR (url,message)
1 parent fd1eea9 commit 59079ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/views/news/news-item.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import type {StoryType} from './types'
66
import {ShareButton} from '../components/nav-buttons'
77

88
const shareItem = (story: StoryType) => {
9+
if (!story.link) {
10+
return
11+
}
912
Share.share({
1013
url: story.link,
11-
message: story.link,
14+
title: story.title,
1215
})
1316
.then(result => console.log(result))
1417
.catch(error => console.log(error.message))

0 commit comments

Comments
 (0)