How to use the react-native-share.open function in react-native-share

To help you get started, we’ve selected a few react-native-share examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github XadillaX / eggirl / src / pages / gallery.js View on Github external
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 => {
github arjunkomath / Feline-for-Product-Hunt / App / SinglePost.js View on Github external
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);
        });
    },
github BlueWallet / BlueWallet / screen / lnd / lndViewInvoice.js View on Github external
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));
                    });
                  });
github PierreBresson / Thinkerview / app / components / shareSocial.js View on Github external
setTimeout(() => {
              Share.open(config.strings.share);
            }, 300);
          }}
github alphasp / pxview / src / screens / Shared / NovelDetail.js View on Github external
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);
  };
github MetaMask / metamask-mobile / app / components / ReceiveScreen / index.js View on Github external
share = () => {
		Share.open({
			url: this.props.selectedAddress
		}).catch(err => {
			Logger.log('Error while trying to share address', err);
		});
	};
github syun0216 / goforeat / app / views / ContentView.js View on Github external
setTimeout(() => {
        Share.open(shareOptions);
      }, 300);
    } else {

react-native-share

Social share, sending simple data to other apps.

MIT
Latest version published 18 days ago

Package Health Score

92 / 100
Full package analysis