0.25.0 • Published 4 days ago

react-native-sjzt-library v0.25.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 days ago

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

0.25.0

4 days ago

0.24.2

2 months ago

0.24.1

2 months ago

0.24.0

2 months ago

0.22.6

4 months ago

0.22.4

4 months ago

0.22.2

4 months ago

0.22.1

4 months ago

0.22.0

5 months ago

0.20.1

5 months ago

0.20.0

5 months ago

0.19.0

5 months ago

0.17.0

6 months ago

0.10.0

7 months ago

0.11.0

7 months ago

0.12.0

7 months ago

0.13.0

7 months ago

0.14.0

7 months ago

0.15.0

7 months ago

0.8.4

8 months ago

0.8.1

9 months ago

0.8.0

9 months ago

0.8.3

9 months ago

0.8.2

9 months ago

0.7.0

9 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.3.0

12 months ago

0.2.0

12 months ago