@dariyd/react-native-document-scanner 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,16 +1,17 @@
1
1
  # react-native-document-scanner
2
2
 
3
- A React Native document scanner module for iOS and Android. Supports the new React Native architecture (Fabric/TurboModules) on iOS.
3
+ [![npm version](https://img.shields.io/npm/v/%40dariyd%2Freact-native-document-scanner.svg)](https://www.npmjs.com/package/@dariyd/react-native-document-scanner) [![license](https://img.shields.io/npm/l/%40dariyd%2Freact-native-document-scanner.svg)](./LICENSE)
4
+
5
+ Fast, native React Native document scanner for iOS and Android using Apple VisionKit (iOS) and Google ML Kit (Android). Features automatic document detection, edge/perspective correction, multi‑page scanning, configurable image quality, optional Base64, and support for the React Native New Architecture (Fabric/TurboModules on iOS).
4
6
 
5
7
  - **iOS**: Uses VisionKit framework and VNDocumentCameraViewController
6
8
  - **Android**: Uses ML Kit Document Scanner API
7
9
 
8
10
  ## Preview
9
- ### iOS
10
- ![iOS Scanner](./assets/ios_demo.gif)
11
11
 
12
- ### Android
13
- ![Android Scanner](./assets/android_demo.gif)
12
+ | iOS Demo | Android Demo |
13
+ |----------|--------------|
14
+ | ![iOS document scanner demo](./assets/ios_demo.gif) | ![Android document scanner demo](./assets/android_demo.gif) |
14
15
 
15
16
 
16
17
  ## Features
@@ -23,6 +24,8 @@ A React Native document scanner module for iOS and Android. Supports the new Rea
23
24
  - 📦 Optional base64 encoding
24
25
  - 🎯 Platform parity - same API for both platforms
25
26
 
27
+ > Keywords: React Native document scanner, VisionKit document scanner, ML Kit document scanner, scan documents React Native, edge detection, perspective correction, multi‑page scanner
28
+
26
29
  ## Installation
27
30
 
28
31
  ### From npm (Recommended)
@@ -83,7 +83,7 @@ repositories {
83
83
  dependencies {
84
84
  //noinspection GradleDynamicVersion
85
85
  implementation 'com.facebook.react:react-native:+' // From node_modules
86
- implementation 'com.google.android.gms:play-services-mlkit-document-scanner:16.0.0-beta1'
86
+ implementation 'com.google.android.gms:play-services-mlkit-document-scanner:16.0.0'
87
87
  }
88
88
 
89
89
  afterEvaluate { project ->
@@ -7,9 +7,8 @@
7
7
 
8
8
  #ifdef RCT_NEW_ARCH_ENABLED
9
9
  #import <RNDocumentScannerSpec/RNDocumentScannerSpec.h>
10
- #endif
11
-
12
10
  using namespace facebook::react;
11
+ #endif
13
12
 
14
13
  @interface DocumentScanner ()
15
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dariyd/react-native-document-scanner",
3
3
  "title": "React Native Document Scanner",
4
- "version": "2.0.13",
4
+ "version": "2.0.15",
5
5
  "description": "React Native document scanner using VisionKit (iOS) and ML Kit (Android) with support for both old and new architecture",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",
@@ -30,17 +30,39 @@
30
30
  },
31
31
  "keywords": [
32
32
  "react-native",
33
+ "react native",
34
+ "react-native-scanner",
35
+ "react-native-document-scanner",
36
+ "rn-document-scanner",
33
37
  "document-scanner",
38
+ "document scanner",
39
+ "scanner",
40
+ "pdf-scanner",
41
+ "pdf scanner",
42
+ "scan documents",
43
+ "document",
34
44
  "visionkit",
45
+ "vision kit",
46
+ "apple visionkit",
35
47
  "mlkit",
48
+ "ml kit",
49
+ "google ml kit",
36
50
  "ios",
37
51
  "android",
52
+ "edge-detection",
53
+ "edge detection",
54
+ "perspective-correction",
55
+ "perspective correction",
56
+ "multi-page",
57
+ "multi page",
38
58
  "fabric",
39
- "turbomodules"
59
+ "turbomodules",
60
+ "react-native-module",
61
+ "react-native-library"
40
62
  ],
41
63
  "author": {
42
- "name": "Dariy",
43
- "email": "dariy@example.com"
64
+ "name": "Dariy D",
65
+ "email": "dariyd.soft@gmail.com"
44
66
  },
45
67
  "homepage": "https://github.com/dariyd/react-native-document-scanner#readme",
46
68
  "bugs": {