@redacto.io/consent-sdk-react-native 3.0.0 → 3.0.1-beta.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.
- package/README.md +12 -2
- package/dist/privacy-center.js +994 -816
- package/dist/privacy-center.mjs +901 -715
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -172,7 +172,7 @@ The Privacy Center is a separate entry point (`@redacto.io/consent-sdk-react-nat
|
|
|
172
172
|
|
|
173
173
|
### Certified UI
|
|
174
174
|
|
|
175
|
-
`RedactoPrivacyCenter` renders the full Privacy Center experience with built-in navigation, auth, theming, and
|
|
175
|
+
`RedactoPrivacyCenter` renders the full Privacy Center experience with built-in navigation, auth, theming, i18n, and an internal `QueryClientProvider`. You do **not** need to wrap it in your own React Query provider.
|
|
176
176
|
|
|
177
177
|
```tsx
|
|
178
178
|
import { RedactoPrivacyCenter } from "@redacto.io/consent-sdk-react-native/privacy-center";
|
|
@@ -220,7 +220,17 @@ If you want to compose your own shell, import the screen-level building blocks i
|
|
|
220
220
|
| `BottomTabBar` | Bottom tab navigation |
|
|
221
221
|
| `Footer` | Footer block |
|
|
222
222
|
|
|
223
|
-
These rely on the context providers (`AuthProvider`, `BaseUrlProvider`, `NavigationProvider`, `ThemeProvider`) — wrap them yourself if you compose the pages directly.
|
|
223
|
+
These rely on the context providers (`AuthProvider`, `BaseUrlProvider`, `NavigationProvider`, `ThemeProvider`, and `QueryClientProvider` for React Query hooks) — wrap them yourself if you compose the pages directly.
|
|
224
|
+
|
|
225
|
+
### Receipt downloads
|
|
226
|
+
|
|
227
|
+
The **My Receipt** screen downloads PDFs via `expo-file-system` and opens the native share sheet via `expo-sharing`. Install both peers when using Privacy Center:
|
|
228
|
+
|
|
229
|
+
```sh
|
|
230
|
+
pnpm add expo-file-system expo-sharing
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
On Expo SDK 52+, the SDK uses the `expo-file-system/legacy` entry automatically; older Expo versions fall back to the main `expo-file-system` export.
|
|
224
234
|
|
|
225
235
|
### UI Primitives
|
|
226
236
|
|