@qore-id/react-native-qoreid-sdk 1.0.1 → 1.0.2
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 +12 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
# @qore-id/react-native-qoreid-sdk
|
|
2
|
-
|
|
3
1
|
QoreID React Native SDK
|
|
4
2
|
|
|
3
|
+
|
|
4
|
+
Link to [documentation](https://dash.readme.com/project/qoreid/v1.0/docs/qoreid-react-native-sdk)
|
|
5
|
+
|
|
5
6
|
## Installation
|
|
6
7
|
|
|
7
|
-
```
|
|
8
|
-
npm install @qore-id/react-native-qoreid-sdk
|
|
8
|
+
```c npm
|
|
9
|
+
npm install --save @qore-id/react-native-qoreid-sdk
|
|
9
10
|
```
|
|
10
|
-
|
|
11
|
-
```sh
|
|
11
|
+
```c yarn
|
|
12
12
|
yarn add @qore-id/react-native-qoreid-sdk
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
### Android
|
|
16
16
|
|
|
17
17
|
Add the following to your `app/build.gradle`
|
|
18
|
+
|
|
18
19
|
```groovy
|
|
19
20
|
repositories {
|
|
20
21
|
mavenCentral()
|
|
@@ -30,14 +31,14 @@ Add this snippet of code to your `~/java/com.<app name>/MainActivity`
|
|
|
30
31
|
@Override
|
|
31
32
|
protected void onCreate(Bundle savedInstanceState) {
|
|
32
33
|
super.onCreate(savedInstanceState);
|
|
33
|
-
QoreidSdkModule.
|
|
34
|
+
QoreidSdkModule.initialize(this);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
<!-- ### iOS
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
From your root directory
|
|
41
42
|
|
|
42
43
|
```sh
|
|
43
44
|
npm i react-native-webview
|
|
@@ -114,9 +115,9 @@ function App() {
|
|
|
114
115
|
|
|
115
116
|
QoreId SDK exposes utilities that you can easily use
|
|
116
117
|
|
|
117
|
-
```
|
|
118
|
+
```coffeescript
|
|
118
119
|
|
|
119
|
-
import React from 'react'
|
|
120
|
+
import React, {useRef} from 'react'
|
|
120
121
|
import { QoreIdButton, utils } from '@qore-id/react-native-qoreid-sdk';
|
|
121
122
|
|
|
122
123
|
function App() {
|
|
@@ -132,6 +133,4 @@ function App() {
|
|
|
132
133
|
...
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
```
|
|
136
|
-
- Link to [doc/product-code]('https://docs.qoreid.com/docs/product-codes')
|
|
137
|
-
- Link to [doc/accepted-documents]('https://docs.qoreid.com/docs/ocr-accepted-documents#accepted-documents-for-ocr-verifications')
|
|
136
|
+
```
|