安装注释后,在浏览器中打开URL时,我需要让React Native应用程序提示我下载linkedIn应用程序
我要做的是一旦打开浏览器,提示用户从iOS和android的App Store下载。请告知您是否可以感谢!
Linking.canOpenURL('https://www.linkedin.com/in/williamhgates').then(supported => {
if (supported) {
Linking.openURL('https://www.linkedin.com/in/williamhgates');
} else {
console.log("Don't know how to open URI: " + 'https://www.linkedin.com/in/williamhgates');
}
});