react native 调去电话功能

let url = 'tel: ' + this.state.ConsigneePhone;
Linking.canOpenURL(url).then(supported => {
if (!supported) {
console.log('Can\'t handle url: ' + url);
} else {
return Linking.openURL(url);
}
}).catch(err => console.error('An error occurred', err));
上面这段代码中ConsigneePhone是在state中的电话号码,Linking是react native的组件用openURL可以打开电话功能