如何在 React Native 中拨打电话? [英] How to make phone call in React Native?
本文介绍了如何在 React Native 中拨打电话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在按下时调用 Text 组件的值.但是,实际上,我没有足够的知识.
I want to call to the value of Text component when I press it. But, actually, I haven't enough knowledge for that.
请您告诉我,我应该使用哪个库或组件?
Can you, please, tell me, which library or component should I use?
推荐答案
如果你查看 react-native-phone-call
的源代码,它最终只是一个包装:
If you look at the source code for react-native-phone-call
, it's ultimately just a wrapper for:
import {Linking} from 'react-native'
Linking.openURL(`tel:${phoneNumber}`)
这篇关于如何在 React Native 中拨打电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文