React Native SDK - One-page setup
Create your app and get the key
- Log in to
testernest.comand create an app. - Copy the
publicKeyfrom 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:
BOOTSTRAPBATCHCLAIM
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.