Installation
Required dependency
Section titled “Required dependency”npm install @pionne/react-nativeRecommended peer dependencies
Section titled “Recommended peer dependencies”| Package | Why |
|---|---|
expo-application | App version + bundle ID auto-detection |
expo-device | Device model + OS version |
expo-updates | Release ID + channel |
react-native-view-shot | Optional screenshot of the crash |
@react-native-async-storage/async-storage | Persist breadcrumbs + offline queue |
npx expo install expo-application expo-device expo-updates react-native-view-shot @react-native-async-storage/async-storageGet a token
Section titled “Get a token”The Pionne mobile app is where you create projects and obtain tokens. Sign in, tap + New project, copy the pio_live_… token, paste it in your code:
import { Pionne } from '@pionne/react-native';
Pionne.init({ token: 'pio_live_xxx', environment: __DEV__ ? 'development' : 'production',});That’s it — your next uncaught exception will appear in the dashboard.