BuglessDocs
Open dashboard
Browse guides

React Native quickstart

Connect a bare React Native app using the source preview.

Install the preview

You’ll need the React Native SDK source from your team. From that checkout, run npm ci and npm pack. Add the resulting tarball to your app with npm install /path/to/package.tgz. The sheet also uses react-native-safe-area-context. Reinstall iOS pods when needed and rebuild the native app.

Mount the feedback sheet

Create the client with the SDK token for your project. Keep the client stable while the sheet is open. Set visible when the user taps your feedback button, and reset it in onDismiss.

import {
  createZeroBugsClient,
  ZeroBugsReportSheet,
} from '@zerobugs/react-native';

const feedback = createZeroBugsClient(projectSdkToken);

// In your view, with visible and setVisible backed by React state
<ZeroBugsReportSheet
  appName="Example app"
  client={feedback}
  visible={visible}
  onDismiss={() => setVisible(false)}
/>;

Send and find a test report

Open the sheet from your app, submit sample feedback, and find it in Reports. Select iOS or Android in the dashboard if you’re filtering by the host device’s platform.