react-native-sjzt-library
TypeScript icon, indicating that this package has built-in type declarations

0.26.1 • Public • Published

react-native-sjzt-library

世纪智图 通用模块库 目前包含

  • 人脸识别
  • 二维码登录
  • 刷卡登录
  • 远程设备管理

设备名:DESKTOP-DUDR7EA 测试软件 C:\Users\User\Desktop\公司电脑共享\我的共享\通用软件\测试软件(人脸刷卡二维码设备远程管理).apk

example 源码在 gitee 目录内的 example

Installation

npm install react-native-sjzt-library

##Introduction export _ from './auth/QRCode'; // 二维码组件 export _ from './hooks/useRequestQRCode'; // 二维码认证登录 hook export _ from './hooks/useCardAuth'; // 刷卡组件 export _ from './auth/FaceCamera'; // 人脸识别组件 export * from './native-module/native'; // java 组件 CardAuthModuleInterface // 刷卡认证模块 ManageModule // 远程后端管理 ManageModule.startService('queryString') ImageEditorModuleInterface //图片编辑 用于裁切人脸

Usage

step-1. add permission

  <uses-permission android:name="android.permission.CAMERA" />
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.RECORD_AUDIO"/>

step-2. was installed? in library peerDependencies

   "react-native-qrcode-svg": "^6.2.0",
   "react-native-reanimated": "^2.14.0",
   "react-native-svg": "^13.9.0",
   "react-native-vision-camera": "^2.15.4",
   "@mat2718/vision-camera-face-detector": "^0.1.15"

step-3. add service components in application at AndroidManifest.xml

    <application>
      <service
        android:name="com.cloud_manage.ManageService"
        android:exported="false" />
      <service
        android:name="com.cloud_manage.killSelfService"
        android:enabled="true"
        android:exported="false" />
    </application>

step-4 because react-native-vision-camera

add kotlinVersion = "1.6.20" in buildScritpt'ext of android/build.gradle

android/build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "33.0.0"
        kotlinVersion = "1.6.20"  // add the  line
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33

        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
    }
    repositories {
        google()
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.3.1")
        classpath("com.facebook.react:react-native-gradle-plugin")

    }
}

ok.

TroubleShot

遇到问题提 Issue@konhc

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-sjzt-library

Homepage

#readme

Weekly Downloads

1

Version

0.26.1

License

MIT

Unpacked Size

87.4 MB

Total Files

167

Last publish

Collaborators

  • konh