@goliapkg/sentori-react-native
v4.0.0
Published
Sentori SDK for React Native — JS-layer error capture, native crash handlers (iOS / Android), batched transport, fetch + react-navigation tracing.
Maintainers
Readme
@goliapkg/sentori-react-native
React Native SDK for Sentori — JS layer
- iOS Swift + Android Kotlin native, distributed as an Expo module (works on bare RN too).
Install
bun add @goliapkg/sentori-react-native
cd ios && pod install --repo-updateUse
import { sentori } from '@goliapkg/sentori-react-native'
sentori.init({
token: 'st_pk_…',
release: '[email protected]',
environment: 'prod',
capture: {
replay: { mode: 'wireframe', hz: 1 },
},
})
sentori.captureException(new Error('boom'))Auto-wired:
- JS
error/unhandledrejectionglobal hooks - iOS
NSExceptionhandler primed byinit - Android uncaught exception handler primed by
init - Native screenshot + view-tree capture under JS-supplied mask IDs
- Hang watchdog (main blocked > 2s emits
kind: "anr") - Wireframe replay sampler (60 slots × ~120 bytes/frame at idle)
Cross-project user lookup (PII-safe)
sentori.setUser({ linkBy: { email: user.email } })Identity is hashed on-device with a per-org salt. The server never sees the raw email / phone.
Sentry compat drop-in
import * as Sentry from '@goliapkg/sentori-react-native/compat'
Sentry.init({ dsn: 'st_pk_…' })
Sentry.captureException(err)→ Full guide: sentori.golia.jp/docs/getting-started/react-native → Privacy contract: sentori.golia.jp/docs/privacy/identity → Sentry translation: sentori.golia.jp/docs/sentry-compat
License
Dual-licensed under Apache-2.0 OR MIT.
