npm.io
1.0.3 • Published 8 years ago

react-native-whatsapp-contacts

Licence
MIT
Version
1.0.3
Deps
0
Size
8 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

react-native-whatsapp-contacts

Getting started

$ npm install react-native-whatsapp-contacts --save

Mostly automatic installation

$ react-native link react-native-whatsapp-contacts

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

Usage

import RNReactNativeWhatsappContacts from 'react-native-whatsapp-contacts';

// TODO: What to do with the module?
RNReactNativeWhatsappContacts;

Keywords