Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.privacyboost.io/llms.txt

Use this file to discover all available pages before exploring further.

Installation

Install the Privacy Boost React Native SDK in your project.

Requirements

  • React Native 0.71+
  • iOS 15+ / Android API 26+
  • Node.js 20+
  • Xcode 15+ (for iOS builds)

Install

npm install @sunnyside-io/privacy-boost-react-native
Or with Yarn:
yarn add @sunnyside-io/privacy-boost-react-native

iOS Setup

After installing, run CocoaPods:
cd ios && pod install
The package ships a prebuilt PrivacyBoostReactNativeFramework.xcframework vendored via the podspec — no extra Xcode configuration is needed.

Android Setup

Auto-linked. The package ships prebuilt Rust static libraries for arm64-v8a, armeabi-v7a, and x86_64. The Android Gradle build picks them up via the CMake configuration shipped with the package. If your app targets architectures outside that set (e.g. x86 for very old emulators), you’ll need to build the SDK from source — see Build from Source.

Verify Installation

import { sdkVersion } from '@sunnyside-io/privacy-boost-react-native';

console.log('SDK Version:', sdkVersion());
If you see the version string at runtime, the native module loaded correctly.

Troubleshooting

pod install fails with “No such module ‘PrivacyBoostFFI’” Clear the CocoaPods cache: cd ios && pod deintegrate && pod install. Android build fails with “unable to find library libprivacy_boost_rn” Your app’s ABI filters exclude the ones the SDK ships for. Either add arm64-v8a / armeabi-v7a / x86_64 to abiFilters in android/app/build.gradle, or build the SDK from source for your target ABI.

Next Steps