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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -