New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 0.2.3 to 1.0.0

19

AKCommunications.js

@@ -5,5 +5,3 @@ 'use strict';

var {
LinkingIOS,
IntentAndroid,
Platform,
Linking,
} = React;

@@ -150,10 +148,9 @@

var LaunchURL = function(url) {
var Linker = Platform.OS === 'android' ? IntentAndroid : LinkingIOS;
Linker.canOpenURL(url, (supported) => {
if (!supported) {
console.log('Can\'t handle url: ' + url);
} else {
Linker.openURL(url);
}
});
Linking.canOpenURL(url).then(supported => {
if(!supported) {
console.log('Can\'t handle url: ' + url);
} else {
return Linking.openURL(url);
}
}).catch(err => console.error('An unexpected error happened', err));
};

@@ -160,0 +157,0 @@

{
"name": "react-native-communications",
"version": "0.2.3",
"description": "Easily call, email, text or iMessage (iOS only) someone in React Native",
"version": "1.0.0",
"description": "Open a web address or call, email, text or iMessage (iOS only) someone in React Native",
"main": "AKCommunications.js",

@@ -6,0 +6,0 @@ "repository": {

@@ -9,2 +9,4 @@ # react-native-communications

If you are on **React Native >= 0.20** just
```bash

@@ -14,2 +16,8 @@ npm install react-native-communications

Versions 0.15 through to and including 0.19 of React Native are also supported by running the following installation command
```bash
npm install react-native-communications@0.2.3
```
## Methods

@@ -16,0 +24,0 @@

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