React Native in-app surveys with session replay

Ask NPS, rating, single-choice, and open-text questions inside your app, and watch the session behind each answer

November 28, 2026

Vexo Team – Co-Founder
Jump to section

Vexo in-app surveys ask your users a short question inside your React Native or Expo app: an NPS score, a 1 to 5 rating, a single choice, or open text. Vexo shows each answer next to the session replay it came from, so you read what a person thought and then watch what they did. You create surveys on the Vexo dashboard's Surveys page and show them with the <VexoSurveys /> component in vexo-analytics 1.16.0 or later.

What a survey answer adds to a session replay

A session replay shows what a person did: where they tapped, which screen they left, and how long they waited. A replay doesn't say what they thought about it. A survey answer says what they thought, but not what led to it. Vexo keeps the two together: each survey response records the session it was given in, and the survey's results link every response to that session's replay.

That changes what you can learn from a score. A low NPS answer on its own is a number to average. With the session beside it, it's a starting point: you see the screens the person visited, the errors Vexo recorded, and the network requests that were slow, in the minutes before they answered.

Which questions and triggers Vexo surveys support

A Vexo survey has 1 to 5 questions, shown one at a time. Each question is one of these types:

  • NPS: a score from 0 to 10. The results show the NPS score and how many people gave each answer.
  • Rating: 1 to 5. The results show the average rating and how many people gave each one.
  • Single choice: 2 to 6 choices. The results show how many people picked each choice.
  • Open text: an answer in the person's own words, up to 2,000 characters.

You choose when the Vexo SDK shows the survey:

  • When the app opens.
  • On a screen: the screen name as Vexo records it, the name you see in your replays and dashboard.
  • After a custom event: the name of one of your custom events.
  • Only from code: your app calls showSurvey at the moment you choose.

You also choose who sees it: everyone, the people whose traits match conditions you set, or a cohort built from person traits, sampled to a share of them. Vexo decides on its servers which surveys each device gets, each time the app starts or returns to the foreground. The Vexo SDK shows at most one survey per session, and each device answers or dismisses a survey once.

Example: find out why buyers score you low after checkout

Say your app sends a custom event named order_placed when a purchase goes through, and you want to know how buyers feel right after they pay. On the Surveys page, you create a survey with two questions: an NPS question, "How likely are you to recommend this app to a friend?", and an open-text question, "What's the main reason for your score?" Under When to show it, you choose After a custom event and enter order_placed. Under Who sees it, you set the share to 20% of people, and launch it.

As answers arrive, the survey's results show the NPS score, the share of promoters, passives, and detractors, and every response, newest first. Say one person scores 3 and writes "took forever." You click Watch replay on that response, and the replay of that session opens. In this example, it shows the person tapping Pay twice while a spinner turned, and the order going through on the second try. The score told you a buyer was unhappy; the replay shows which step made them wait, and the session's network requests show which call was slow.

The other triggers fit other questions:

  • On a screen: ask "How easy was this to set up?" as a rating on the screen of a feature you just shipped, and watch the replays of the people who rate it 1 or 2.
  • Only from code: call showSurvey when a person finishes a step that no custom event marks, such as the last page of an onboarding flow.
  • When the app opens: ask returning users a single-choice question about what they came back to do.

Set up in-app surveys

In-app surveys need:

  • SDK: vexo-analytics 1.16.0 or later.
  • A new native build: the survey sheet is built from React Native views and adds no dependency, but 1.16.0 also adds native code for other features, so run pod install and rebuild, or make a new development or EAS build with Expo.
  • Expo: Development builds and EAS Build. Doesn't run in Expo Go.
npm install vexo-analytics@latest

Render <VexoSurveys /> once, as the last child of your root layout, so a survey can cover your screens:

import { VexoSurveys } from 'vexo-analytics';

export default function RootLayout() {
  return (
    <>
      <Stack />
      <VexoSurveys />
    </>
  );
}

The Vexo SDK fetches the surveys a device can see only while <VexoSurveys /> is mounted, so an app that doesn't render it sends no extra requests. The survey shows as a sheet at the bottom of the screen.

Then create the survey:

  1. In the Vexo dashboard's sidebar, click Surveys, and then click New survey.
  2. Enter a name, and add 1 to 5 questions. For a single-choice question, enter one choice per line.
  3. Under When to show it, choose a trigger.
  4. Under Who sees it, optionally set the share of people, choose a cohort, or add person traits.
  5. Click Save as draft, and then click Launch on the survey's page.

To show a survey from your code, give it the Only from code (showSurvey) trigger, and call showSurvey with the survey's ID, the last part of its URL in the dashboard:

import { showSurvey } from 'vexo-analytics';

const shown = showSurvey('SURVEY_ID');

showSurvey returns false when Vexo didn't deliver that survey to the device, for example because the person isn't in its audience or already answered it, or when another survey is on screen.

What Vexo in-app surveys don't do

  • They're for mobile apps only. Vexo in-app surveys aren't available for websites, and on React Native Web, <VexoSurveys /> renders nothing.
  • Questions are fixed once you launch. You can change a survey's name, trigger, and audience at any time, but not its questions, so every answer keeps meaning what its question said. To ask something else, create a new survey.
  • Cohorts must be built from person traits. A survey can target a cohort built only from person traits, which come from identifyDevice. Cohorts built from events aren't available for surveys yet.
  • A response has a replay only if its session was recorded. When a session has no replay, for example because replays are sampled or turned off, the response links to the session instead, with Go to session.
  • Replays show the survey sheet. Vexo blurs every replay frame on the device by default. No published release masks individual views yet, so if you turn blur off, the survey sheet and what people type into it appear in the replay like the rest of the screen.
  • Consent comes first. With requireConsent, the Vexo SDK fetches and sends nothing before grantConsent(). After disableTracking(), it fetches no surveys and sends no answers.

For every option, see In-app surveys in the Vexo docs.

More from vexo-analytics 1.16.0

Start today for free

Our free tier is the perfect starting point to try vexo. You can upgrade at any time!