react-native-usesense 2.2.0 → 2.3.0

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 +38 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # UseSense React Native
1
+ # Sense React Native
2
2
 
3
3
  React Native plugin for human presence verification. Wraps the native
4
- UseSense iOS and Android SDKs into a single cross-platform package.
4
+ Sense iOS and Android SDKs into a single cross-platform package.
5
5
 
6
- UseSense verifies that a real human — not a bot, deepfake, or replay
6
+ Sense verifies that a real human — not a bot, deepfake, or replay
7
7
  attack — is behind the camera during identity verification sessions.
8
8
  Three independent pillars run in parallel on every session:
9
9
 
@@ -47,22 +47,22 @@ yarn add react-native-usesense
47
47
  cd ios && pod install
48
48
  ```
49
49
 
50
- The native UseSense iOS SDK is installed automatically as a CocoaPod
50
+ The native Sense iOS SDK is installed automatically as a CocoaPod
51
51
  dependency from the public CocoaPods trunk (`UseSenseSDK`, pinned to
52
52
  `~> 4.2`). Add required permissions to your `Info.plist`:
53
53
 
54
54
  ```xml
55
55
  <key>NSCameraUsageDescription</key>
56
- <string>UseSense needs camera access to verify your identity.</string>
56
+ <string>Sense needs camera access to verify your identity.</string>
57
57
 
58
58
  <!-- Only if your verification flow includes audio challenges -->
59
59
  <key>NSMicrophoneUsageDescription</key>
60
- <string>UseSense needs microphone access for voice verification.</string>
60
+ <string>Sense needs microphone access for voice verification.</string>
61
61
  ```
62
62
 
63
63
  ### Android setup
64
64
 
65
- The native UseSense Android SDK is pulled automatically from Maven
65
+ The native Sense Android SDK is pulled automatically from Maven
66
66
  Central (`ai.usesense:sdk:4.2.1`). `mavenCentral()` is in every
67
67
  Android project by default, so no custom repository declaration is
68
68
  needed.
@@ -120,6 +120,37 @@ try {
120
120
  // That's where you read pillar scores and make access decisions.
121
121
  ```
122
122
 
123
+ ## White-labeling (Appearance & Copy)
124
+
125
+ The verification flow UI is fully customizable through two optional inputs you pass
126
+ on a flow run: `appearance` (`FlowAppearance`) and `copy` (`FlowCopy`). Values are
127
+ merged **SDK-init > dashboard (org settings) > built-in default**. Every field is
128
+ optional; anything you omit keeps the Sense default.
129
+
130
+ You can set this two ways: in code (below), or no-code via the dashboard's
131
+ **Flows → Appearance** tab (saved on your org, delivered to every SDK and the hosted
132
+ pages, no redeploy).
133
+
134
+ Customizable surfaces: colors (plus dark-mode overrides), typography, shape and
135
+ button style, logo, background, icons/illustrations, the loader, and every
136
+ subject-facing string plus privacy copy.
137
+
138
+ ```typescript
139
+ import { UseSenseFlows, FlowAppearance, FlowCopy } from 'react-native-usesense';
140
+
141
+ const appearance: FlowAppearance = {
142
+ colors: { primary: '#E4002B' },
143
+ shape: { buttonStyle: 'outline' },
144
+ };
145
+ const copy: FlowCopy = {
146
+ result: { successTitle: "You're verified" },
147
+ };
148
+
149
+ await UseSenseFlows.runFlow({ flowRunId, sdkToken, appearance, copy });
150
+ ```
151
+
152
+ Full reference: [`docs/WHITE_LABEL.md` in the web SDK](https://github.com/qudusadeyemi/usesense-web-sdk/blob/main/docs/WHITE_LABEL.md).
153
+
123
154
  ## Configuration
124
155
 
125
156
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-usesense",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "React Native plugin for human presence verification. Wraps the native UseSense iOS and Android SDKs.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",