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.0.1 to 0.0.2

2

package.json
{
"name": "react-native-communications",
"version": "0.0.1",
"version": "0.0.2",
"description": "Easily call, email, text or iMessage someone in React Native",

@@ -5,0 +5,0 @@ "main": "AKCommunications.js",

@@ -17,3 +17,3 @@ # react-native-communications

`phoneNumber - String`
`phoneNumber - String`
`prompt - Boolean`

@@ -27,2 +27,4 @@

---
```js

@@ -32,6 +34,6 @@ email(to, cc, bcc, subject, body)

`to - String Array`
`cc - String Array`
`bcc - String Array`
`subject - String`
`to - String Array`
`cc - String Array`
`bcc - String Array`
`subject - String`
`body - String`

@@ -55,2 +57,4 @@

---
```js

@@ -79,3 +83,64 @@ text(phoneNumber)

```js
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
TouchableOpacity,
View,
} = React;
var Communications = require('react-native-communications');
var RNCommunications = React.createClass({
render: function() {
return (
<View style={styles.container}>
<TouchableOpacity onPress={() => Communications.phonecall('0123456789', true)}>
<View style={styles.phone}>
<Text style={styles.text}>Make phonecall</Text>
</View>
</TouchableOpacity>
<TouchableOpacity onPress={() => Communications.email(['emailAddress1', 'emailAddress2'],null,null,'My Subject','My body text')}>
<View style={styles.email}>
<Text style={styles.text}>Send an email</Text>
</View>
</TouchableOpacity>
<TouchableOpacity onPress={() => Communications.text('0123456789')}>
<View style={styles.sms}>
<Text style={styles.text}>Send a text/iMessage</Text>
</View>
</TouchableOpacity>
</View>
);
}
});
var styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
backgroundColor: 'rgb(253,253,253)',
},
phone: {
flex: 33,
justifyContent: 'center',
},
email: {
flex: 33,
justifyContent: 'center',
},
sms: {
flex: 33,
justifyContent: 'center',
},
text: {
fontSize: 32,
},
});
AppRegistry.registerComponent('RNCommunications', () => RNCommunications);
```
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