Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-communications

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-communications - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

14

AKCommunications.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc