没几句话,也记录一下吧!
import {
Linking,
} from 'react-native'
handlerLinkCall() {
let url = "tel://10086"
Linking.canOpenURL(url).then(supported => {
if (!supported) {
console.log('请先打开拨号权限');
} else {
return Linking.openURL(url);
}
}).catch(err => console.error('An error occurred', err));
}
网友评论