How can I share pdf file link or image link which will open in react native mobile app web browser. I have added a share button but when the user clicks on it, it opens where to share menu options like WhatsApp, Gmail, messages, etc. But when clicking on WhatsApp it does not send any content why so? Do I need to make use of Gmail, WhatsApp API with my react native android app
code:
import { Text, View, StyleSheet, Button, Animated, Dimensions, ScrollView, Image, TouchableOpacity, Linking, Platform, Share } from 'react-native'; // inside render onSharePress = (shareOptions) => Share.share(shareOptions); const shareOptions = { title: 'Download Brochure', url: brochure } // inside return <View style={{paddingLeft: 10, marginRight: 20, flex: 1, flexDirection: 'row', justifyContent: 'flex-end'}}> <TouchableOpacity onPress={() => this.onSharePress(shareOptions)}> <Icon style={{paddingLeft: 10}} name="md-share" size={25} color="black"/> </TouchableOpacity> </View> In screenshot below you can see it just opens the share options menu but when I click on some of the platform the content i.e the URL of the file is not sent how can I do that ? Am I missing something ?


