react-native-snagrelay
v0.1.6
Published
SnagRelay bug reporting & feedback SDK for React Native apps
Maintainers
Readme
react-native-snagrelay
Bug reporting & feedback SDK for React Native (iOS + Android). Captures screenshots with annotation, device/error context, and sends reports to your SnagRelay project.
snagrelay.com · Privacy · Contact
Install
npm install react-native-snagrelay
npm install react-native-view-shot react-native-svg react-native-device-info react-native-shake @react-native-picker/picker react-native-safe-area-context @react-native-async-storage/async-storageiOS:
cd ios && pod installRequires a bare React Native app or an Expo custom dev client — not Expo Go.
Requires React Native ≥ 0.76 (New Architecture). Rebuild the native app after installing peers.
Usage
import { SnagRelayProvider } from 'react-native-snagrelay';
export default function App() {
return (
<SnagRelayProvider apiKey="your-project-api-key">
<YourApp />
</SnagRelayProvider>
);
}Expo .env
EXPO_PUBLIC_SNAG_RELAY_API_KEY=your-project-api-keyimport { Platform } from 'react-native';
import { SnagRelayProvider } from 'react-native-snagrelay';
export default function App() {
const app = <YourApp />;
if (Platform.OS !== 'web') {
return (
<SnagRelayProvider apiKey={process.env.EXPO_PUBLIC_SNAG_RELAY_API_KEY}>
{app}
</SnagRelayProvider>
);
}
return app;
}What it captures
- Annotated screenshot (pen, arrow, highlight, redact)
- Device info
- Recent console errors/warnings, JS errors, and failed network requests
Get an API key from your project settings at app.snagrelay.com.
