Socket
Book a DemoInstallSign in
Socket

react-native-kiper-contacts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-kiper-contacts

Library for get contacts list with params

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
7
-36.36%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-kiper-contacts

Warning

- This library is available only for android, ios library in construction!! - If you want use for ios, try this library: https://github.com/rt2zz/react-native-contacts/

Getting started

$ npm install react-native-kiper-contacts --save or yarn add react-native-kiper-contacts

Mostly automatic installation

$ react-native link react-native-kiper-contacts

Manual installation

Android

  • Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import br.com.kiper.contact.KiperContactsPackage; to the imports at the top of the file
  • Add new KiperContactsPackage() to the list returned by the getPackages() method
  • Append the following lines to android/settings.gradle:
    include ':react-native-kiper-contacts'
    project(':react-native-kiper-contacts').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-kiper-contacts/android')
    
  • Insert the following lines inside the dependencies block in android/app/build.gradle:
      implementation project(':react-native-kiper-contacts')
    

Usage

tip: Always check permission for readContacts :)

import kiperContacts from 'react-native-kiper-contacts';

const getAllExample = async () => {
  const result = await kiperContacts.getAll(0, 0);
  // result = [{ name: string, phones: [array of strings], contactId: string }]
};

const searchContactsExample = async () => {
  // types: like, like left, like right or null(null = equals)
  const filters = [{ key: 'name', value: 'test', type: 'like' }];
  const result = await kiperContacts.searchContacts(filters, 0, 0);
  // result = [{ name: string, phones: [array of strings], contactId: string }]
};

Credits

www.kiper.com.br

Keywords

react-native

FAQs

Package last updated on 24 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.