diff --git a/src/page/file/view.js b/src/page/file/view.js
index 5600e8a..c6ccdd3 100644
--- a/src/page/file/view.js
+++ b/src/page/file/view.js
@@ -508,6 +508,20 @@ class FilePage extends React.PureComponent {
this.setState({ fileViewLogged: true });
};
+ // TODO: Move this to lbry-redux
+ formatLbryUrlForWeb = url => {
+ return url.replace('lbry://', '/').replace(/#/g, ':');
+ };
+
+ handleSharePress = () => {
+ const { claim, notify } = this.props;
+ if (claim) {
+ const { canonical_url: canonicalUrl, short_url: shortUrl, permanent_url: permanentUrl } = claim;
+ const url = 'https://beta.lbry.tv/' + this.formatLbryUrlForWeb(canonicalUrl || (shortUrl || permanentUrl));
+ NativeModules.UtilityModule.shareUrl(url);
+ }
+ };
+
handleSendTip = () => {
const { claim, balance, navigation, notify, sendTip } = this.props;
const { uri } = navigation.state.params;
@@ -933,6 +947,22 @@ class FilePage extends React.PureComponent {
+
+
+
+
+ Share
+
+
+ Linking.openURL(`https://lbry.com/dmca/${claim.claim_id}`)}
+ >
+
+ Report
+
+
+
{channelName && (
@@ -969,12 +999,7 @@ class FilePage extends React.PureComponent {
onPress={this.onSaveFilePressed}
/>
)}
-