hc-idreader
v1.0.7
Published
## Getting started
Downloads
3
Readme
hc-idreader
Getting started
$ npm install hc-idreader --save
Mostly automatic installation
$ react-native link hc-idreader
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNIdreaderPackage;
to the imports at the top of the file - Add
new RNIdreaderPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':hc-idreader' project(':hc-idreader').projectDir = new File(rootProject.projectDir, '../node_modules/hc-idreader/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':hc-idreader')
Usage
import RNIdreader from 'hc-idreader';
// TODO: What to do with the module?
RNIdreader;