hc-idreader

## Getting started

Usage no npm install needed!

<script type="module">
  import hcIdreader from 'https://cdn.skypack.dev/hc-idreader';
</script>

README

hc-idreader

Getting started

$ npm install hc-idreader --save

Mostly automatic installation

$ react-native link hc-idreader

Manual installation

Android

  1. 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 the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':hc-idreader'
    project(':hc-idreader').projectDir = new File(rootProject.projectDir, 	'../node_modules/hc-idreader/android')
    
  2. 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;