@aioproductoscom/react-native
v0.1.3
Published
AIOProductOS analytics for React Native — in-app events, identity, screens, and revenue from a customer's mobile app onto the AIOProductOS spine. Zero dependencies.
Maintainers
Readme
@aioproductoscom/react-native
AIOProductOS analytics for React Native (and Expo). Capture in-app events, identity, screens, and revenue from your mobile app — they land on the same AIOProductOS spine, joined to the same customer record as your web and server data. Zero dependencies.
Install
npm install @aioproductoscom/react-native
# optional, for identity that survives app restarts:
npm install @react-native-async-storage/async-storageQuick start
import AsyncStorage from "@react-native-async-storage/async-storage";
import { ProductOS } from "@aioproductoscom/react-native";
export const pos = new ProductOS({
apiKey: "pk_live_…", // your product (publishable) key, from your AIOProductOS workspace
storage: AsyncStorage, // optional — without it, identity resets per launch
});
pos.identify(user.id, { email: user.email, plan: "scale" });
pos.screen("Dashboard");
pos.capture("report_exported", { format: "pdf" });
pos.revenue(99, "EUR", { plan: "scale" });
pos.reset(); // on logoutEvents are queued and flushed in batches automatically — calls never block the
UI thread. Call pos.flush() when the app backgrounds (e.g. from an AppState
listener) to send anything pending.
Why a mobile SDK
A customer's mobile app is a capture surface the browser SDK can't reach (no DOM). This sends the same event shape over the same ingest, so funnels, retention, the brain, and your AI teammates reason across web and mobile on one spine.
Links
- Website: aioproductos.com
- Platform (get your keys): platform.aioproductos.com
- All SDKs (web, product, chat, scheduling, server): aioproductos.com/sdk
- Server twin:
@aioproductoscom/node - Support: [email protected]
