React Native Installation
Install and set up the WhatzBug SDK in your React Native project.
Requirements
| Requirement | Minimum |
|---|---|
| React Native | 0.60+ |
| Node.js | 18+ |
| iOS Deployment Target | 12+ |
| Android Min SDK | 21 (Android 5.0) |
Install
# npm
npm install @whatzbug/react-native
# yarn
yarn add @whatzbug/react-nativeiOS Setup
cd ios && pod installThe 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 prebuildVerify 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.