Image attached. When a user clicks a button to prompt a call to "911", the number "911" displays correctly on an Android device, but on an iPhone "911" gets displayed as "(91)1". How can I fix this? Code and image below. Thank you.
constants.emergencyNumber = "911";
handleEmergency = () => {
if (Platform.OS === "ios") {
return Linking.openURL(`telprompt:${constants.emergencyNumber}`);
}
return Linking.openURL(`tel:${constants.emergencyNumber}`);
};
<TouchableOpacity onPress={this.handleEmergency}>
<Text>Emergency Dial Icon Here</Text>
</TouchableOpacity>
Here is the result on an iPhone when the user clicks on the button to trigger this function: