Socket
Socket
Sign inDemoInstall

react-native-contacts

Package Overview
Dependencies
Maintainers
3
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-contacts - npm Package Compare versions

Comparing version 2.1.9 to 2.2.0

2

package.json

@@ -7,3 +7,3 @@ {

},
"version": "2.1.9",
"version": "2.2.0",
"description": "React Native Contacts (android & ios)",

@@ -10,0 +10,0 @@ "nativePackage": true,

@@ -63,14 +63,3 @@ # React Native Contacts

## API Implemented methods
| Feature | iOS | Android |
| ------- | --- | ------- |
| `getAll` | ✔ | ✔ |
| `addContact` | ✔ | ✔ |
| `openContactForm` | ✔ | ✔ |
| `updateContact` | ✔ | ✔ |
| `getContactsMatchingString` | ✔ | ✔ |
| `deleteContact` | ✔ | X |
## API
* `getAll` (callback) - returns *all* contacts as an array of objects

@@ -87,7 +76,7 @@ * `getAllWithoutPhotos` - same as `getAll` on Android, but on iOS it will not return uris for contact photos (because there's a significant overhead in creating the images)

All callbacks follow node-style:
Callbacks follow node-style:
```sh
callback <Function>
err <Error>
contacts <Array>
response <Object>
```

@@ -186,3 +175,3 @@

//delete the second record
Contacts.deleteContact(contacts[1], (err) => {
Contacts.deleteContact(contacts[1], (err, recordId) => {
if (err) throw err;

@@ -197,3 +186,3 @@ // contact deleted

```es
Contacts.deleteContact({recordID: 1}, (err) => {
Contacts.deleteContact({recordID: 1}, (err, recordId) => {
if (err) throw err;

@@ -200,0 +189,0 @@ // contact deleted

Sorry, the diff of this file is not supported yet

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