@safercity/sdk-react-native 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +16 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  React Native adapter for SaferCity SDK with expo-fetch streaming support and secure token storage.
4
4
 
5
+ ## What's New in v0.3.2
6
+
7
+ - **Proxy Mode for White-Label Apps** - `SaferCityProvider` now supports `tenantId`, `userId`, and `headers` in proxy mode. Essential for white-label React Native apps where the native app talks to your backend proxy, which then forwards to SaferCity API.
8
+ - **useBanner Fix** - Fixed hook parameter from `radius` to `days`.
9
+
10
+ ```tsx
11
+ // White-label React Native app
12
+ <SaferCityProvider
13
+ mode="proxy"
14
+ proxyBaseUrl={`${env.EXPO_PUBLIC_SERVER_URL}/api/safercity`}
15
+ tenantId={env.EXPO_PUBLIC_TENANT_ID}
16
+ >
17
+ <App />
18
+ </SaferCityProvider>
19
+ ```
20
+
5
21
  ## What's New in v0.3.1
6
22
 
7
23
  - **Simplified Return Types** - Updated to reflect v0.3.1 client changes. Domain methods return API body directly. Hook data types auto-adapt via `@safercity/sdk-react`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safercity/sdk-react-native",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "React Native adapter for SaferCity SDK with expo-fetch streaming support",
5
5
  "license": "MIT",
6
6
  "author": {