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
- 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
- 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')
- 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';
RNReactNativeWhatsappContacts;