@reclaimprotocol/inapp-rn-sdk 0.9.4-alpha.3 → 0.9.4-alpha.4

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 +60 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,6 +25,12 @@ This SDK allows you to integrate Reclaim's in-app verification process into your
25
25
  npm install @reclaimprotocol/inapp-rn-sdk
26
26
  ```
27
27
 
28
+ Or if you're using Expo, use:
29
+
30
+ ```sh
31
+ npx expo install @reclaimprotocol/inapp-rn-sdk
32
+ ```
33
+
28
34
  ### Alternative: Install from git source
29
35
 
30
36
  #### NPM
@@ -41,6 +47,60 @@ yarn add git+https://github.com/reclaimprotocol/reclaim-inapp-reactnative-sdk.gi
41
47
 
42
48
  ## Setup
43
49
 
50
+ ### Expo Only Setup
51
+
52
+ Expo users can skip the native configuration changes by adding the Reclaim InApp Config Plugin. To do so merge the following code to the plugins section of your `app.json`, `app.config.js`, or `app.config.ts` file:
53
+
54
+ ```diff
55
+ {
56
+ // .. other plugin options (removed for brevity)
57
+ "plugins": [
58
+ "expo-router",
59
+ // Add the following in the plugins section:
60
+ + "@reclaimprotocol/inapp-rn-sdk",
61
+ [
62
+ "expo-splash-screen",
63
+ {
64
+ "image": "./assets/images/splash-icon.png",
65
+ "imageWidth": 200,
66
+ "resizeMode": "contain",
67
+ "backgroundColor": "#ffffff"
68
+ }
69
+ ]
70
+ // ... other plugins (removed for brevity)
71
+ ],
72
+ // .. other options (removed for brevity)
73
+ }
74
+ ```
75
+
76
+ Note: This module contains custom native code which is NOT supported by Expo Go
77
+
78
+ If you're using Expo without EAS, run the following commands:
79
+
80
+ ```
81
+ # For iOS
82
+ npx expo prebuild
83
+ npx expo run:ios
84
+
85
+ # For Android
86
+ npx expo prebuild
87
+ npx expo run:android
88
+ ```
89
+
90
+ If you're using Expo with EAS, create a new build:
91
+
92
+ ```
93
+ # For online builds
94
+ npx eas-cli build --profile development
95
+
96
+ # For local builds
97
+ npx eas-cli build --profile development --local
98
+ ```
99
+
100
+ Follow [the fixing ios performance issues guide](#fixing-performance-issues-on-ios-physical-devices) to fix slow proof generation on iOS physicial devices.
101
+
102
+ Now your expo project is ready to use. [You can follow the usage section for more](#usage).
103
+
44
104
  ### Android Setup
45
105
 
46
106
  Add the following to your `android/app/src/main/AndroidManifest.xml` file under the `<application>` tag:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reclaimprotocol/inapp-rn-sdk",
3
- "version": "0.9.4-alpha.3",
3
+ "version": "0.9.4-alpha.4",
4
4
  "description": "Reclaim Protocol's InApp React Native SDK for ZK proof generations for requests with an in-app experience of web verification",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/commonjs/index.js",