Skip to main content
The Userpilot React Native module can be easily integrated into an app using Expo.

Installation and Setup

$ npx expo install @userpilot/react-native
The Userpilot React Native module includes native code, so you must generate a new development build. If you use Continuous Native Generation (CNG), run npx expo prebuild, otherwise follow the Create a development build guide.
import * as Userpilot from '@userpilot/react-native';

await Userpilot.setup('<APP_TOKEN>');

Userpilot.identify('user-id');

Userpilot.screen('Screen Name');

Push Notifications

Userpilot maintains @userpilot/expo-config, an Expo config plugin that automatically configures push notifications for your app. See https://docs.userpilot.com/developer/installation/mobile/mobile-expo-push-notification for details.