@qore-id/react-native-qoreid-sdk 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +19 -13
  2. 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://docs.qoreid.com/docs/qoreid-react-native-sdk)
5
+
5
6
  ## Installation
6
7
 
7
- ```sh
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,21 @@ 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.initializeSDK(this);
34
+ QoreidSdkModule.initialize(this);
34
35
  }
35
36
 
36
37
  ```
37
38
 
39
+ Add import statement above the class
40
+
41
+ ```java
42
+ import com.qoreidsdk.QoreidSdkModule;
43
+
44
+ ```
45
+
38
46
  <!-- ### iOS
39
47
 
40
- You will be required to install WebView package if you don't already have it installed in your project.
48
+ From your root directory
41
49
 
42
50
  ```sh
43
51
  npm i react-native-webview
@@ -114,9 +122,9 @@ function App() {
114
122
 
115
123
  QoreId SDK exposes utilities that you can easily use
116
124
 
117
- ```tsx
125
+ ```coffeescript
118
126
 
119
- import React from 'react'
127
+ import React, {useRef} from 'react'
120
128
  import { QoreIdButton, utils } from '@qore-id/react-native-qoreid-sdk';
121
129
 
122
130
  function App() {
@@ -132,6 +140,4 @@ function App() {
132
140
  ...
133
141
  }
134
142
 
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')
143
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qore-id/react-native-qoreid-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "QoreId React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",