@errtap/react-native
v0.2.0
Published
ErrTap React Native error tracking SDK
Downloads
169
Maintainers
Readme
@errtap/react-native
React Native SDK for ErrTap — hooks ErrorUtils for uncaught JS errors.
npm i @errtap/react-native// App.tsx (or index entry — call once at startup)
import { init } from '@errtap/react-native';
init({
dsn: process.env.EXPO_PUBLIC_ERRTAP_DSN!, // https://et_…@host
environment: __DEV__ ? 'development' : 'production',
release: '1.0.0',
});Manual capture / logs:
import { captureException, logger } from '@errtap/react-native';
logger.info('checkout started');
try {
await pay();
} catch (e) {
captureException(e as Error);
throw e;
}