Phone link react native

1

Would anyone know how to link to open the smartphone phone call when the user clicks on the phone number in the apk?

I'm waiting ...

    
asked by anonymous 22.01.2018 / 01:55

2 answers

1

I do not know if this is the case, but by doing this with href="tel:999999999" you can have the smartphone browser recognize the number as a phone number. See the examples

<span itemprop="telephone">
    <a href="tel:25266896">+55 (31) 2526-6896</a>
</span>

<span itemprop="telephone">
    <a href="tel:999816008">+55 (31) 99981-6008 (VIVO)</a>
</span>
Some older versions of Safari automatically convert the numbers to Link, and may lose their CSS formatting, so I suggest using <meta name="format-detection" content="telephone=no"> to avoid any problems with them.

style in the old Safaris.

Example of how to customize CSS for phone links:

a[href^="tel:"] {
    color: orange;
    text-decoration: none;
}
    
22.01.2018 / 11:20
0

You can use a normal html anchor link, specifying as being a phone, as well as an email link:

ex: <a href="tel:00-000-000000" > 00-000-000000 </a>

    
22.01.2018 / 11:12