g0v/react-native-scanbot

Name: react-native-scanbot

Owner: g0v

Description: https://scanbot.io/en/sdk.html for react native

Created: 2017-04-20 15:39:55.0

Updated: 2017-07-28 23:41:25.0

Pushed: 2017-08-11 08:10:20.0

Homepage: null

Size: 81346

Language: Objective-C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

react-native-scanbot

Getting started

$ npm install react-native-scanbot --save

Mostly automatic installation

$ react-native link react-native-scanbot

Manual installation
iOS
  1. In XCode, in the project navigator, right click Libraries ? Add Files to [your project's name]
  2. Go to node_modules ? react-native-scanbot and add RNScanbot.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNScanbot.a to your project's Build Phases ? Link Binary With Libraries
  4. Run your project (Cmd+R)<
Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  2. Add import com.reactlibrary.RNScanbotPackage; to the imports at the top of the file
  3. Add new RNScanbotPackage() to the list returned by the getPackages() method
  4. Append the following lines to android/settings.gradle:
    ude ':react-native-scanbot'
    ect(':react-native-scanbot').projectDir = new File(rootProject.projectDir,  '../node_modules/react-native-scanbot/android')
    
  5. Insert the following lines inside the dependencies block in android/app/build.gradle:
    mpile project(':react-native-scanbot')
    
Windows

Read it! :D

  1. In Visual Studio add the RNScanbot.sln in node_modules/react-native-scanbot/windows/RNScanbot.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  3. Add using Com.Reactlibrary.RNScanbot; to the usings at the top of the file
  4. Add new RNScanbotPackage() to the List<IReactPackage> returned by the Packages method
Usage
rt RNScanbot from 'react-native-scanbot';

ODO: What to do with the module?
anbot;

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.