import { StyleSheet,Text,TouchableOpacity,Linking } from 'react-native';
<TouchableOpacity activeOpacity={0.8} onPress={()=>{
Linking.canOpenURL('tel:'+电话号码).then(
(supported)=>{
if(supported){
Linking.openURL('tel:'+电话号码)
}else{
alert('通话失败')
}
}
)
}}>
<Text style={{fontSize:FONT_SIZE(16),color:'#333'}} >联系商家</Text> </TouchableOpacity>
APP调用电话拨打电话
猜你喜欢
转载自blog.csdn.net/qq_25905161/article/details/81298896
今日推荐
周排行