@adtogether/react-native-sdk 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ This SDK allows React Native developers to easily integrate AdTogether ads into
|
|
|
18
18
|
> **Developer Account Required**: Before integrating the SDK, you must create a developer account at [https://adtogether.relaxsoftwareapps.com](https://adtogether.relaxsoftwareapps.com) to generate your `appId` and configure your ad units. Integration will not work without a valid `appId`.
|
|
19
19
|
|
|
20
20
|
<p align="center">
|
|
21
|
-
<img src="
|
|
21
|
+
<img src="https://adtogether.relaxsoftwareapps.com/dashboard.png" width="800" alt="Developer Dashboard">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
### 🖼️ Visualizing the Experience
|
|
@@ -90,7 +90,7 @@ function MyApp() {
|
|
|
90
90
|
|
|
91
91
|
| Prop | Type | Default | Description |
|
|
92
92
|
|--------------------|-------------------------|-----------|-------------|
|
|
93
|
-
| `adUnitId` | `string` |
|
|
93
|
+
| `adUnitId` | `string` | `'default'` | Optional label for this ad placement (e.g. `'home_banner'`, `'chat_bottom'`). Used for analytics grouping only — not validated server-side. |
|
|
94
94
|
| `showCloseButton` | `boolean` | `false` | Show a dismissable close button overlay. |
|
|
95
95
|
| `onAdClosed` | `() => void` | — | Called when the user closes the ad. |
|
|
96
96
|
| `theme` | `'dark' \| 'light' \| 'auto'` | `'auto'` | Color scheme. `'auto'` follows system preference. |
|
|
@@ -131,7 +131,7 @@ function MyApp() {
|
|
|
131
131
|
|
|
132
132
|
| Prop | Type | Default | Description |
|
|
133
133
|
|--------------------|-------------------------|-----------|-------------|
|
|
134
|
-
| `adUnitId` | `string` |
|
|
134
|
+
| `adUnitId` | `string` | `'default'` | Optional label for this ad placement. Used for analytics grouping only. |
|
|
135
135
|
| `isOpen` | `boolean` | **required** | When `true`, the interstitial is displayed. |
|
|
136
136
|
| `onClose` | `() => void` | **required** | Called when the user closes the interstitial. |
|
|
137
137
|
| `closeDelay` | `number` | `3` | Seconds before the close button appears. A countdown is shown during this time. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adtogether/react-native-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"description": "The official AdTogether React Native SDK — reciprocal ad exchange to increase conversions and grow your audience.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|