SDKs
React Native
Installation
Install dependencies
We're dependent on expo-application for buildNumber, versionNumber (and referrer on android) and expo-constants to get the user-agent.
Initialize
On native we use a clientSecret to authenticate the app.
Options
Common options
apiUrl- The url of the openpanel API or your self-hosted instanceclientId- The client id of your applicationclientSecret- The client secret of your application (only required for server-side events)filter- A function that will be called before sending an event. If it returns false, the event will not be sentdisabled- If true, the library will not send any events
Usage
Track event
Navigation / Screen views
For more information on how to use the SDK, check out the Javascript SDK.