Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 338
Just Ahead Avatar asked Jul 26 '18 18:07

Just Ahead


1 Answers

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}`) 
like image 61
Tim Avatar answered Sep 20 '22 10:09

Tim