Socket
Socket
Sign inDemoInstall

react-native-contacts

Package Overview
Dependencies
Maintainers
3
Versions
101
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 5.0.5 to 5.0.6

1

index.d.ts
export function getAll(callback: (error: any, contacts: Contact[]) => void): void;
export function getAllWithoutPhotos(callback: (error: any, contacts: Contact[]) => void): void;
export function getContactById(contactId: string, callback: (error: any, contact: Contact) => void): void;
export function getCount(callback: (count: number) => void): void;
export function getPhotoForId(contactId: string, callback: (error: any, photoUri: string) => void): void;

@@ -5,0 +6,0 @@ export function addContact(contact: Contact, callback: (error?: any) => void): void;

2

package.json

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

},
"version": "5.0.5",
"version": "5.0.6",
"description": "React Native Contacts (android & ios)",

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

@@ -135,3 +135,3 @@ ![react-native-contacts](https://github.com/rt2zz/react-native-contacts/raw/master/example/logo.png)

Android requires allowing permissions with https://facebook.github.io/react-native/docs/permissionsandroid.html
The `READ_CONTACTS` permission is automatically added to `AndroidManifest.xml`, so you just need request it. If your app creates contacts add `WRITE_CONTACTS` permission to `AndroidManifest.xml` and request the permission at runtime.
The `READ_CONTACTS` permission must be added to your main application's `AndroidManifest.xml`. If your app creates contacts add `WRITE_CONTACTS` permission to `AndroidManifest.xml` and request the permission at runtime.
```xml

@@ -172,2 +172,3 @@ ...

* `getContactById(contactId, callback)` - returns contact with defined contactId (or null if it doesn't exist)
* `getCount(callback)` - returns the number of contacts
* `getPhotoForId(contactId, callback)` - returns a URI (or null) for a contacts photo

@@ -174,0 +175,0 @@ * `addContact` (contact, callback) - adds a contact to the AddressBook.

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