react-native-contacts
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161925
239