React Native Installation

Install and set up the WhatzBug SDK in your React Native project.

Requirements

RequirementMinimum
React Native0.60+
Node.js18+
iOS Deployment Target12+
Android Min SDK21 (Android 5.0)

Install

# npm
npm install @whatzbug/react-native

# yarn
yarn add @whatzbug/react-native

iOS Setup

cd ios && pod install

The SDK uses autolinking — no manual linking is required.

Android Setup

No additional setup is required. The SDK registers itself via React Native autolinking.

ProGuard / R8

If you use ProGuard or R8, add:

-keep class com.whatzbug.sdk.** { *; }
-dontwarn com.whatzbug.sdk.**

Expo Projects

For managed Expo projects, you’ll need a development build since the SDK includes native modules.

npx expo install @whatzbug/react-native
npx expo prebuild

Verify Installation

App.tsxtypescript
import WhatzBug from '@whatzbug/react-native';

WhatzBug.init({
  projectId: 'test',
  publishableKey: 'pk_test',
  apiBaseUrl: 'https://api.whatzbug.com',
  debug: true,
});

Run your app. If you see [WhatzBug] SDK initialized in your console, the installation is complete.

Next Steps