react-nativephone-call

How to make phone call in React Native?


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?

enter image description here enter image description here


Solution

  • 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}`)