rnkit_sensor

1.0.10 • Public • Published

npm react-native MIT bitHound Score Downloads

埋点 for React Native.

Support me with a Follow

Getting Started

First, cd to your RN project directory, and install RNMK through rnpm . If you don't have rnpm, you can install RNMK from npm with the command npm i -S rnkit_sensor and link it manually (see below).

iOS

  • #### React Native < 0.29 (Using rnpm)

    rnpm install rnkit_sensor

  • #### React Native >= 0.29 $npm install -S rnkit_sensor

    $react-native link rnkit_sensor

Manually

  1. Add node_modules/rnkit_sensor/ios/RNKitExcard.xcodeproj to your xcode project, usually under the Libraries group
  2. Add libRNKitExcard.a (from Products under RNKitExcard.xcodeproj) to build target's Linked Frameworks and Libraries list
  3. Add ocr framework to $(PROJECT_DIR)/Frameworks.

Android

  • #### React Native < 0.29 (Using rnpm)

    rnpm install rnkit_sensor

  • #### React Native >= 0.29 $npm install -S rnkit_sensor

    $react-native link rnkit_sensor

Manually

  1. JDK 7+ is required
  2. Add the following snippet to your android/settings.gradle:
include ':rnkit_sensor'
project(':rnkit_sensor').projectDir = new File(rootProject.projectDir, '../node_modules/rnkit_sensor/android/app')
  1. Declare the dependency in your android/app/build.gradle
dependencies {
    ...
    compile project(':rnkit_sensor')
}
  1. Import import io.rnkit.excard.EXOCRPackage; and register it in your MainActivity (or equivalent, RN >= 0.32 MainApplication.java):
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.asList(
            new MainReactPackage(),
            new EXOCRPackage()
    );
}
  1. Add Module ExBankCardSDK And ExCardSDK In Your Main Project.

Finally, you're good to go, feel free to require rnkit_sensor in your JS files.

Have fun! 🤘

Questions

Feel free to contact me or create an issue

made with ♥

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.10
    3
    • latest

Version History

Package Sidebar

Install

npm i rnkit_sensor

Weekly Downloads

12

Version

1.0.10

License

MIT

Unpacked Size

70.1 MB

Total Files

1372

Last publish

Collaborators

  • carlos1992