react-native-communications
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -8,3 +8,3 @@ 'use strict'; | ||
export const phonecall = (phoneNumber, prompt) => { | ||
export const phonecall = function(phoneNumber, prompt) { | ||
if(arguments.length !== 2) { | ||
@@ -39,3 +39,3 @@ console.log('you must supply exactly 2 arguments'); | ||
export const email = (to, cc, bcc, subject, body) => { | ||
export const email = function(to, cc, bcc, subject, body) { | ||
let url = 'mailto:'; | ||
@@ -111,3 +111,3 @@ let argLength = arguments.length; | ||
export const text = (phoneNumber = null, body = null) => { | ||
export const text = function(phoneNumber = null, body = null) { | ||
if(arguments.length > 2) { | ||
@@ -143,3 +143,3 @@ console.log('you supplied too many arguments. You can either supply 0 or 1 or 2'); | ||
export const web = (address) => { | ||
export const web = function(address) { | ||
if(!address) { | ||
@@ -157,3 +157,3 @@ console.log('Missing address argument'); | ||
const LaunchURL = (url) => { | ||
const LaunchURL = function(url) { | ||
Linking.canOpenURL(url).then(supported => { | ||
@@ -168,3 +168,3 @@ if(!supported) { | ||
const getValidArgumentsFromArray = (array, type) => { | ||
const getValidArgumentsFromArray = function(array, type) { | ||
var validValues = []; | ||
@@ -180,3 +180,3 @@ array.forEach(function(value) { | ||
const isCorrectType = (expected, actual) => { | ||
const isCorrectType = function(expected, actual) { | ||
return Object.prototype.toString.call(actual).slice(8, -1) === expected; | ||
@@ -183,0 +183,0 @@ }; |
{ | ||
"name": "react-native-communications", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
12943