@prosesenv/monitoring-react-native
v3.1.0
Published
React Native SDK for comprehensive mobile app monitoring - track errors, performance, user interactions, and network requests with device context
Maintainers
Readme
@prosesenv/monitoring-react-native
React Native SDK for the Monitoring Platform - Track errors, performance, and user interactions in your React Native applications.
Installation
npm install @prosesenv/monitoring-react-nativeAdditional Dependencies
npm install react-native-device-infoQuick Start
import MonitoringSDK from '@prosesenv/monitoring-react-native';
const monitoring = new MonitoringSDK({
projectId: 123,
platform: 'mobile',
apiKey: 'your-api-key',
apiUrl: 'https://prosesenv.com:3001' // Optional: defaults to https://prosesenv.com:3001
});
// Track errors
monitoring.trackError(new Error('Something went wrong'), {
screen: 'HomeScreen',
action: 'button_press'
});
// Track user interactions
monitoring.trackUserInteraction('button_press', 'HomeScreen', {
button_id: 'submit_button'
});
// Track screen views
monitoring.trackScreenView('HomeScreen');Features
- ✅ Error tracking with device context
- ✅ Performance monitoring
- ✅ User interaction tracking
- ✅ Screen view tracking
- ✅ Network request tracking
- ✅ Device information collection
- ✅ TypeScript definitions
Migration from v1.x
See SDK_MIGRATION_GUIDE.md for detailed migration instructions.
