Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setTimeout(function() {
Share.open({
url: `data:${mime};base64,${base64}`,
message: `Eggirl - ${media.caption}`,
type: "image/jpeg"
}).catch(err => err && console.log(err));
}, 0);
}).catch(err => {
share: function () {
Mixpanel.trackWithProperties('Share Post', {
share_text: this.state.post.name,
share_URL: this.state.post.redirect_url
});
Share.open({
share_text: this.state.post.name,
share_URL: this.state.post.redirect_url,
title: "Sharing is Caring"
}, function (e) {
console.log(e);
});
},
this.qrCodeSVG.toDataURL(data => {
let shareImageBase64 = {
message: `lightning:${invoice.payment_request}`,
url: `data:image/png;base64,${data}`,
};
Share.open(shareImageBase64).catch(error => console.log(error));
});
});
setTimeout(() => {
Share.open(config.strings.share);
}, 300);
}}
handleOnPressShareNovel = () => {
const { item } = this.props;
const shareOptions = {
message: `${item.title} | ${item.user.name} #pxview`,
url: `https://www.pixiv.net/novel/show.php?id=${item.id}`,
};
Share.open(shareOptions)
.then(this.handleOnCancelMenuBottomSheet)
.catch(this.handleOnCancelMenuBottomSheet);
};
share = () => {
Share.open({
url: this.props.selectedAddress
}).catch(err => {
Logger.log('Error while trying to share address', err);
});
};
setTimeout(() => {
Share.open(shareOptions);
}, 300);
} else {