@pieowl/react-native
v1.4.2
Published
Pieowl SDK for React Native and Expo apps: track events and screen views, with an optional offline event queue.
Maintainers
Readme
@pieowl/react-native
The Pieowl SDK for React Native. Track events and screen views in iOS and Android apps, and queue events while the device is offline.
npm install @pieowl/react-native
npx expo install expo-application expo-constantsexpo-application gives the SDK the app version and build number (and the install referrer on Android). expo-constants gives it the user agent.
import { Pieowl } from '@pieowl/react-native';
const pieowl = new Pieowl({
clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}',
});
pieowl.track('my_event', { foo: 'bar' });Native apps can't send CORS headers, so the SDK authenticates with your client secret.
Full documentation: https://pieowl.com/docs/sdks/react-native
