react-native-cf-contacts
v1.1.0
Published
## Getting started
Downloads
8
Readme
react-native-cf-contacts
Getting started
$ npm install react-native-cf-contacts --save
Mostly automatic installation
$ react-native link react-native-cf-contacts
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-cf-contacts
and addRNCfContacts.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNCfContacts.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNCfContactsPackage;
to the imports at the top of the file - Add
new RNCfContactsPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-cf-contacts' project(':react-native-cf-contacts').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cf-contacts/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-cf-contacts')
Usage
import RNCfContacts from 'react-native-cf-contacts';
// TODO: What to do with the module?
RNCfContacts;