以下Linking.openURL
方法
const phone_number = '(800) 321 123 122'
Linking.openURL(`tel:${phone_number}`)
不适用于 React Native 0.72,但适用于一些早期版本。
最佳答案
需要在前缀中添加//,例如
Linking.openURL(`tel://${phone_number}`)
Linking.openURL(`maps://...`)
关于react-native - Linking.openURL ('tel:xxxxx' )在 React Native iOS 0.72 iOS 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76728990/