{"repo":"aptabase/aptabase-react-native","free":true,"listed":false,"github":"https://github.com/aptabase/aptabase-react-native","clone":"git clone https://github.com/aptabase/aptabase-react-native.git","description":"React Native SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps","language":"TypeScript","stars":42,"topics":["analytics","privacy","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"React Native SDK for Aptabase Instrument your React Native or Expo apps with Aptabase, an Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps. Install Install the SDK using npm or your preferred JavaScript package manager Android Requirements If you're targeting Android, you'll need to add the following permissions to your AndroidManifest.xml : Web Support This SDK also supports React Native Web! [!NOTE] This feature is disabled by default. To enable it, you need to pass the enableWeb option when initializing the SDK. When enabled, the SDK will track events in web environments using the same behavior as the web SDKs. Which means that events will be sent immediately to the /event endpoint instead of grouped to the /events endpoint. Usage First, you need to get your App Key from Aptabase, you can find it in the Instructions menu on the left side menu. Initialize the SDK by calling the init function before declaring your App component: Afterwards, you can start tracking events with trackEvent : To disable tracking events, you can call the dispose function. This will stop and deinitialize the SDK. Note for Expo apps: Events sent during development while running on Expo Go will not have the App Version property because native modules are not available in Expo Go. However, when you build your app and run it on a real device, the App Version property will be available. Alternatively, you can also set the appVersion during the init call so that it's also ","default_branch":null,"files":null,"tree":[],"storefront":"/r/aptabase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aptabase/aptabase-react-native/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}