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 3.0.2 to 3.1.0

4

index.d.ts

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

export function addContact(contact: Contact, callback: (error?: any) => void): void;
export function openContactForm(contact: Contact, callback: (error?: any) => void): void;
export function openContactForm(contact: Contact, callback: (error: any, contact: Contact) => void): void;
export function openExistingContact(contact: Contact, callback: (error: any, contact: Contact) => void): void;
export function updateContact(contact: Contact, callback: (error?: any) => void): void;

@@ -13,2 +14,3 @@ export function deleteContact(contact: Contact, callback: (error?: any) => void): void;

export function requestPermission(callback: (error: any, result: 'authorized' | 'denied' | 'undefined') => void): void;
export function writePhotoToPath(contactId: string, file: string, callback: (error: any, result: boolean) => void): void;

@@ -15,0 +17,0 @@ export interface EmailAddress {

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

},
"version": "3.0.2",
"version": "3.1.0",
"description": "React Native Contacts (android & ios)",

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

@@ -153,2 +153,3 @@ # React Native Contacts

* `openContactForm` (contact, callback) - create a new contact and display in contactsUI.
* `openExistingContact` (contact, callback) - where contact is an object with a valid recordID
* `updateContact` (contact, callback) - where contact is an object with a valid recordID

@@ -159,2 +160,3 @@ * `deleteContact` (contact, callback) - where contact is an object with a valid recordID

* `requestPermission` (callback) - request permission to access Contacts _ios only_
* `writePhotoToPath` (callback) - writes the contact photo to a given path _android only_

@@ -161,0 +163,0 @@ Callbacks follow node-style:

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