Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I click share button I got this issue actually i used react-native-share plugin. #202

Open
Jeet007das opened this issue Nov 22, 2018 · 1 comment

Comments

@Jeet007das
Copy link

2018_11_22_14 34 12

import Share from 'react-native-share';

__shareArticleContent() {
try {
let shareImageBase64 = {
title: removeHtmlTags(this.state.data.title),
message: removeHtmlTags(this.state.data.excerpt) + "\nRead more here",
url: this.state.data.link,
subject: "Qrius - " + removeHtmlTags(this.state.data.title)
};

         // alert(shareImageBase64)
        Share.open(shareImageBase64);
    }
    catch (e) {
        alert("In Catch block")
        //console.log('error : ',e);
    }
}

<Touchable style={styles.headerShareIconTouchable} onPress={() => this.__shareArticleContent()}>
<Animated.Image style={[{ opacity: animatedOpacity, height: IconHeight, width: 28 }]} resizeMode={'contain'} source={require('@images/shareIcon.png')} />

@jgcmarins
Copy link

wrong repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants