Installation
Step 1: Install Package & Dependencies
Step 2: Platform Setup
Choose your platform setup based on your React Native environment:- React Native CLI
- Expo Development Build
- Expo Go
iOS:Android:
- Add native module to
android/app/src/main/java/.../MainApplication.java:
- Add permission to
android/app/src/main/AndroidManifest.xml:
- Rebuild your app:
Step 3: Verify Installation
Test that native modules are working:Quick Start
https://your-edgee-host.com with the URL provided in the Edgee console, in the project overview section.
Events
- Screen event
Theedgee.screen() method expect the following parameters:
| field | type | description |
|---|---|---|
screen_obj (required) | object | A free-form dictionary object containing properties of the screen event. This object has to include the screen_name field, and can include the screen_class and properties fields. |
components (optional) | object | Specifies which analytics components should receive the event data. This allows for targeted data sending based on your configured components within the Edgee platform. |
edgee.screen() call:
- Track event
Theedgee.track() method expect the following parameters:
| field | type | description |
|---|---|---|
track_obj (required) | object | A free-form dictionary object containing properties of the track event. This object has to include the name field, and can include the screen_name and screen_class fields, and the properties field. |
components (optional) | object | Specifies which analytics components should receive the event data. This allows for targeted data sending based on your configured components within the Edgee platform. |
edgee.track() call:
- User event
Theedgee.user() method expect the following parameters:
| field | type | description |
|---|---|---|
user_obj (required) | object | A free-form dictionary object containing properties of the user event. This object has to include the user_id field, and can include the properties field. |
components (optional) | object | Specifies which analytics components should receive the event data. This allows for targeted data sending based on your configured components within the Edgee platform. |
edgee.user() call:
- Consent (Optional)
To define the consent status, you can use theedgee.consent() method.
Configuration
Debug Mode
Enable debug logging to see what’s happening:Compatibility
| Platform | Version | Native Context | Auto-Linking |
|---|---|---|---|
| React Native | 0.72+ | ✅ Full | iOS: ✅ Android: Manual |
| iOS | 11.0+ | ✅ Full | ✅ CocoaPods |
| Android | API 21+ | ✅ Full | ⚠️ Manual setup |
| Expo Dev Build | Latest | ✅ Full | ✅ Automatic |
| Expo Go | Latest | ⚠️ Fallback | N/A |