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
Post a Comment