React Native SDK (client)
Install the Ours Privacy React Native SDK to capture privacy-first analytics in React Native, Expo, and web. Pure JavaScript — no native modules, no IDFA, no ATT prompt on iOS.
Privacy-first analytics for React Native. Pure JavaScript — works in React Native, Expo, and web.
- npm package
- GitHub repository — full README, API reference, and release notes
Install
npm install @oursprivacy/react-native @react-native-async-storage/async-storage@react-native-async-storage/async-storage is a peer dependency used for persistent storage in bare React Native projects. Without it, the SDK falls back to in-memory storage.
Quick Start
import { OursPrivacy } from '@oursprivacy/react-native';
const op = new OursPrivacy();
await op.init('YOUR_API_TOKEN');
op.track('App Opened');For the full API — identify, flush, reset, default properties, deep link attribution, opt in/out, EU routing, and configuration — see the README on GitHub.
Compatibility
react >= 16.8.0react-native >= 0.60.0- Expo (managed and bare)
- Web (via
react-native-web)
Because the SDK is pure JavaScript, iOS and Android version support follows whatever your React Native version supports. No IDFA is collected — AppTrackingTransparency (ATT) permission is not required on iOS.
Explore the API
Want to see what you can send? Try our playground for a point-and-click payload builder.
Need Help?
Next Steps
- Client SDKs overview — pick the right SDK for each surface.
- Web SDK (JavaScript) — for browser tracking, including
react-native-webapps. - iOS SDK and Android SDK — if you need native modules instead of the pure-JS path.
How is this guide?

