react-native-communications
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -129,3 +129,6 @@ 'use strict'; | ||
if(isCorrectType('String', body)) { | ||
url += Platform.OS === 'ios' ? `&body=${body}` : `?body=${body}`; | ||
// for some strange reason android seems to have issues with ampersands in the body unless it is encoded twice! | ||
// iOS only needs encoding once | ||
if(Platform.OS === 'android') body = encodeURIComponent(body); | ||
url += Platform.OS === 'ios' ? `&body=${encodeURIComponent(body)}` : `?body=${encodeURIComponent(body)}`; | ||
} else { | ||
@@ -132,0 +135,0 @@ console.log('the body should be provided as a string. It was provided as ' |
{ | ||
"name": "react-native-communications", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Open a web address or call, email, text or iMessage (iOS only) someone in React Native", | ||
@@ -5,0 +5,0 @@ "main": "AKCommunications.js", |
@@ -0,0 +0,0 @@ # react-native-communications |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
145
12772