https://github.com/aditi3/react-native-capacitor-example
React Native Capacitor Example demonstrating usage of Adjust Cordova plugin.
https://github.com/aditi3/react-native-capacitor-example
Last synced: 3 months ago
JSON representation
React Native Capacitor Example demonstrating usage of Adjust Cordova plugin.
- Host: GitHub
- URL: https://github.com/aditi3/react-native-capacitor-example
- Owner: Aditi3
- Created: 2022-06-30T12:42:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T15:00:12.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T09:46:55.948Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 729 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Capacitor Adjust Example
React Native Capacitor Example demonstrating usage of Adjust Cordova plugin.
## Add Adjust SDK to your project
```
npm install @awesome-cordova-plugins/adjust --save
npm add com.adjust.sdk
```## Integrate Adjust SDK into your app
##### Import the Adjust SDK
```
import { Adjust, AdjustConfig, AdjustEnvironment, AdjustLogLevel, AdjustEvent } from '@awesome-cordova-plugins/adjust';
```##### Create Adjust Config and track an event
```
var adjustConfig = new AdjustConfig("{YourAppToken}", AdjustConfig.EnvironmentSandbox);
Adjust.create(adjustConfig);var adjustEvent = new AdjustEvent("g3mfiw");
Adjust.trackEvent(adjustEvent);
```