Skip to main content

React Native SDK - One-page setup

Create your app and get the key

  1. Log in to testernest.com and create an app.
  2. Copy the publicKey from your app settings.

Install the package

npm i @testernest/react-native
# or
yarn add @testernest/react-native

Android setup

  • The SDK pulls from mavenCentral() automatically.
  • Minimum supported versions: Android SDK 21+, Kotlin 1.6+.

Initialize in JavaScript

Initialize once at app startup and mount the connect prompt:

import {TesterNest, TesterNestConnectPrompt} from '@testernest/react-native';

TesterNest.initialize({
publicKey: 'YOUR_PUBLIC_KEY',
baseUrl: 'https://api.testernest.com', // optional
});

export default function App() {
return (
<>
<MainApp />
<TesterNestConnectPrompt />
</>
);
}

Verify (Logcat)

Filter Logcat for the following tags:

  • BOOTSTRAP
  • BATCH
  • CLAIM

You should see events after entering a valid 6-digit code.

Troubleshooting

  • Metro not running: Start Metro with npx react-native start.
  • White screen: Ensure the prompt is mounted and not hidden by your layout.
  • Code invalid: Confirm the app matches the key in the dashboard.
  • No logs: Verify initialization runs before the prompt renders.