'expo send deep link to whatsapp and open the link to app
I want to share a screen to whatsapp and if the user press on whatsapp he should redirected to my app how I make this ?
My following code:
const path = useRoute();
// Replace this with react-native-share
const handleShareScreen = async () => {
try {
const link = Linking.createURL(path.name, {
queryParams: path.params
});
const res = Share.share({
message: link,
title: screenname,
url: link
});
} catch(e) {
console.error(e)
}
};
But in whatsapp I get this:
exp://192.168.0.249:19000/--/Packets?index=1
its not a link, so how can it redirect to my app
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
