@rezabakhshi/error-tracker-react-native
v1.3.4
Published
React Native error tracker SDK
Maintainers
Readme
@rezabakhshi/error-tracker-react-native
React Native SDK for Error Tracker - error monitoring and tracking.
Installation
npm install @rezabakhshi/error-tracker-react-native
# or
yarn add @rezabakhshi/error-tracker-react-native
Usage
import { init, captureException } from '@rezabakhshi/error-tracker-react-native';
// Initialize
init({
dsn: '[email protected]/your_project_id',
environment: 'production'
});
// Capture errors
try {
// Your code
} catch (error) {
captureException(error);
}
// Capture messages
captureMessage('User logged in');
Configuration
dsn (required): Your project DSN
environment: 'production', 'staging', 'development', 'test'
release: Release version
sampleRate: 0.0 - 1.0 (default: 1.0)
enableCrashReporting: true/false (default: true)
## Step 3: Build the SDK
```powershell
# Navigate to react-native folder
cd D:\reza\saas_error\mobile-sdks\react-native
# Install dependencies
npm install
# Build the SDK
npm run build
