npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@redacto.io/consent-sdk-react-native

v1.0.0

Published

React Native SDK for integrating Redacto consent notices in mobile apps.

Readme

@redacto.io/consent-sdk-react-native

React Native SDK for Redacto consent management. Port of @redacto.io/consent-sdk-react with the same API surface.

Installation

pnpm add @redacto.io/consent-sdk-react-native react-native-svg
# Optional – required for TTS audio playback
pnpm add expo-av

Note: react-native-svg must be linked for native builds. Follow the react-native-svg setup guide.

Components

RedactoNoticeConsent

Modal consent component. Supports initial consent, reconsent, age verification, guardian form, and TTS playback.

import { RedactoNoticeConsent } from "@redacto.io/consent-sdk-react-native";

<RedactoNoticeConsent
  noticeId="your-notice-uuid"
  accessToken={accessToken}
  refreshToken={refreshToken}
  onAccept={() => navigation.navigate("Dashboard")}
  onDecline={() => console.log("declined")}
/>

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | noticeId | string | ✓ | UUID of the consent notice | | accessToken | string | ✓ | JWT access token | | refreshToken | string | ✓ | JWT refresh token | | baseUrl | string | | Override API base URL | | settings | Partial<Settings> | | UI customisation (colours, border radius, fonts) | | language | string | | Initial language code (e.g. "en") | | blockUI | boolean | | Block the modal from being dismissed | | applicationId | string | | Application-specific UUID | | validateAgainst | "all" \| "required" | | Validation mode | | includeFullyConsentedData | boolean | | Include already-consented items | | reviewModeButtonText | string | | CTA text in review mode | | onAccept | () => void | ✓ | Called on successful consent | | onDecline | () => void | ✓ | Called when user declines | | onError | (error: Error) => void | | Called on API errors |


RedactoNoticeConsentInline

Inline consent component. Auto-submits when all required elements are checked and an access token is available.

import { RedactoNoticeConsentInline } from "@redacto.io/consent-sdk-react-native";

<RedactoNoticeConsentInline
  org_uuid="org-uuid"
  workspace_uuid="workspace-uuid"
  notice_uuid="notice-uuid"
  accessToken={accessToken}
  onAccept={() => console.log("accepted")}
  onValidationChange={(isValid) => setCanProceed(isValid)}
/>

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | org_uuid | string | ✓ | Organisation UUID | | workspace_uuid | string | ✓ | Workspace UUID | | notice_uuid | string | ✓ | Notice UUID | | accessToken | string | | JWT access token (triggers auto-submit when set) | | baseUrl | string | | Override API base URL | | language | string | | Language code | | settings | Partial<Settings> | | UI customisation | | applicationId | string | | Application-specific UUID | | onAccept | () => void | | Called on successful consent | | onDecline | () => void | | Called when user declines | | onError | (error: Error) => void | | Called on errors | | onValidationChange | (isValid: boolean) => void | | Fires when validation state changes |

TTS Audio

If expo-av is installed, TTS playback is automatically enabled. Install it and configure audio mode in your app entry point:

import { Audio } from "expo-av";
await Audio.setAudioModeAsync({ playsInSilentModeIOS: true });

Configuration and env best practices

  • The SDK is runtime-configured via props and does not read from .env directly.
  • Keep API keys and server secrets on your backend only.
  • In Expo apps, values read from EXPO_PUBLIC_* are bundled into the app and should only contain non-sensitive config like UUIDs and URLs.
  • If you do not pass baseUrl, the SDK defaults to https://api.redacto.io/consent for both modal and inline components.

License

Apache-2.0