android - React native -- call phone number with extension -


i trying open phone number extension. linking works phone number

tried few options

linking.openurl('tel:xxxxxxxxx,xxx');  linking.openurl('tel:'+ encodeuricomponent('xxxxxxxxx,xxx')); 

dialer dials primary number , doesnt include extension

i write native code , expose method, last option

i know late, can try component: react-native-communications.

it works both on ios , android.

you have import in file need:

import communications 'react-native-communications'; 

and use need:

<touchableopacity onpress={() => communications.phonecall(phonenumbers[0].number, true)}> 

Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -