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.5 to 2.1.6

16

index.d.ts

@@ -10,4 +10,4 @@ declare module 'react-native-contacts' {

export function getContactsMatchingString(str: string, callback: (error: any, contacts: Contact[]) => void): void;
export function checkPermission(callback: (error: any, result: 'authorized' | 'denied') => void): void;
export function requestPermission(callback: (error: any, result: 'authorized' | 'denied') => void): void;
export function checkPermission(callback: (error: any, result: 'authorized' | 'denied' | 'undefined') => void): void;
export function requestPermission(callback: (error: any, result: 'authorized' | 'denied' | 'undefined') => void): void;

@@ -36,9 +36,9 @@ export interface EmailAddress {

}
export interface Birthday {
day: Number;
month: Number;
year: Number;
day: number;
month: number;
year: number;
}
export interface Contact {

@@ -59,4 +59,4 @@ recordID: string;

department: string;
birthday: Birthday;
birthday: Birthday;
}
}

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

},
"version": "2.1.5",
"version": "2.1.6",
"description": "React Native Contacts (android & ios)",

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

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

## Status
* Preliminary iOS and Android support
* API subject to revision, changelog in release notes
## API Implemented methods
| Feature | iOS | Android |

@@ -74,4 +71,4 @@ | ------- | --- | ------- |

| `updateContact` | ✔ | ✔ |
| `getContactsMatchingString` | ✔ | ✔ |
| `deleteContact` | ✔ | X |
| `getContactsMatchingString` | ✔ | ✔ |

@@ -88,4 +85,4 @@ ## API

* `getContactsMatchingString` (string, callback) - where string is any string to match a name (first, middle, family) to
* `checkPermission` (callback) - checks permission to access Contacts
* `requestPermission` (callback) - request permission to access Contacts
* `checkPermission` (callback) - checks permission to access Contacts _ios only_
* `requestPermission` (callback) - request permission to access Contacts _ios only_

@@ -92,0 +89,0 @@ All callbacks follow node-style:

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