Source : Sharing To WhatsApp From A React Native Application
This tutorial explains how to share particular message to whatsapp application in react native application. Sharing a content in whataspp application is very easy and simple. Just you need to import Linking class from the react-native package.
Sharing to WhatsApp from a react native application
Follow the below steps to share text content in whatsapp application :
import Linking class from the react-native package.
import { Linking } from "react-native";Call the below function, in order to share content in whatsapp application.
shareToWhatsApp = (text) => {
Linking.openURL(whatsapp://send?text=${text}
);
}
Top comments (0)