I need to make a call when I click on the button, or open mail in order to send a message, we usually use the a tag with the necessary mail:
or tel:
attributes for these purposes, but is it possible to do this using Linking.openURL
like this?
onPress={() => Linking.openURL('+380775454545455')
If it possible, what should we add in order to do it?
2
Answers
Mail:
Phone call:
As referred to in the react-native’s documentation you can open your mail or make a phone call using the Linking component.
Phone call:
Email:
You can also use the component to open a website, send an SMS, or even open other apps through Deep Linking. For further explanation please see the documentation