Manikanta add this code
static/js/14.xxxx.js file
14.xxxx.js
i.a.createElement("div",{className:"my-account-menu-item-block col p-0 mr-3",onClick:function(){sharei()}},i.a.createElement("div",{className:"text-center my-account-menu-item"},i.a.createElement(L.a,{top:!0,delay:450},i.a.createElement("div",null,i.a.createElement("i",{className:"si si-share"})))),i.a.createElement("div",{className:"text-center"},"Share with your Friends"),i.a.createElement(v.a,{duration:"500"})),
i.a.createElement("div",{className:"my-account-menu-item-block col p-0 mr-3",onClick:function(){window.location.href = 'https://play.google.com/store/apps/details?id=xxx.xxxx.xxx'}},i.a.createElement("div",{className:"text-center my-account-menu-item"},i.a.createElement(L.a,{top:!0,delay:450},i.a.createElement("div",null,i.a.createElement("i",{className:"si si-star"})))),i.a.createElement("div",{className:"text-center"},"Rate & Review App"),i.a.createElement(v.a,{duration:"500"})),
https://play.google.com/store/apps/details?id=xxx.xxxx.xxx
replace your play store URL
add this code on the root folder index.html file inside <script>
async function sharei(){
if(navigator.share) {
try {
const shareData = {
title: 'Foodomaa',
text: 'Order Food Now!',
url: 'https://xxxxxx.xxx',
}
await navigator.share(shareData);
console.log('Share successfull');
} catch(err) {
console.log('Error: ', err);
}
} else {
window.location.href = 'whatsapp://send?text=Dowload+The+App+Now+%26+Order+Delicious+Food+Online%21+https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Din.swiggy.android'
console.warn('Native Web Sharing not supported');
}
}
here also change all text msg with your
enjoy: