I'm trying to initiate an immediate phone call without the middleware dialog.
I've used the Linking.openUrl()
but it didn't work.
react-native-immediate-phone-call does that but it requires linking which isn't possible with expo
.
What can I do?
You can use Linking
. Import that by import * as Linking from "expo-linking"
.
Then use openURL
function where you use as argument tel
instead http
.
Similar like:
Linking.openURL('tel:+12 XXX XXX XXX')
where X is any digit.
Hope that was helpful ;)
import * as Linking from "expo-linking";
Then you can directly link to phone call like
Linking.openURL(`tel:${phoneNumber}`);
There are other schemes also mentioned in the docs like mailto etc
https://docs.expo.io/guides/linking/?redirected
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With