react-native-communications
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -161,5 +161,14 @@ 'use strict'; | ||
} else { | ||
return Linking.openURL(url); | ||
Linking.openURL(url) | ||
.catch(err => { | ||
if(url.includes('telprompt')) { | ||
// telprompt was cancelled and Linking openURL method sees this as an error | ||
// it is not a true error so ignore it to prevent apps crashing | ||
// see https://github.com/anarchicknight/react-native-communications/issues/39 | ||
} else { | ||
console.warn('openURL error', err) | ||
} | ||
}); | ||
} | ||
}).catch(err => console.error('An unexpected error happened', err)); | ||
}).catch(err => console.warn('An unexpected error happened', err)); | ||
}; | ||
@@ -166,0 +175,0 @@ |
{ | ||
"name": "react-native-communications", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Open a web address or call, email, text or iMessage (iOS only) someone in React Native", | ||
@@ -5,0 +5,0 @@ "main": "AKCommunications.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13118
154