teads-react-native 6.0.5 → 6.0.6
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# teads-react-native
|
|
2
2
|
|
|
3
|
-
Easily embed
|
|
3
|
+
Easily embed Teads Feed and Media widgets in your React Native app!
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -48,9 +48,11 @@ The package includes:
|
|
|
48
48
|
|
|
49
49
|
Import `TeadsAdPlacementFeed` and `TeadsAdPlacementMedia` from `teads-react-native` and embed the widget in your component tree:
|
|
50
50
|
|
|
51
|
+
### TeadsAdPlacementFeed
|
|
52
|
+
|
|
51
53
|
```
|
|
52
54
|
import { ScrollView } from 'react-native';
|
|
53
|
-
import { TeadsAdPlacementFeed
|
|
55
|
+
import { TeadsAdPlacementFeed } from 'teads-react-native';
|
|
54
56
|
|
|
55
57
|
const App = () => {
|
|
56
58
|
return (
|
|
@@ -69,6 +71,23 @@ const App = () => {
|
|
|
69
71
|
</ScrollView>
|
|
70
72
|
);
|
|
71
73
|
};
|
|
74
|
+
```
|
|
72
75
|
|
|
73
|
-
|
|
76
|
+
### TeadsAdPlacementMedia
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
import { ScrollView } from 'react-native';
|
|
80
|
+
import { TeadsAdPlacementMedia } from 'teads-react-native';
|
|
81
|
+
|
|
82
|
+
const App = () => {
|
|
83
|
+
return (
|
|
84
|
+
<ScrollView>
|
|
85
|
+
<TeadsAdPlacementMedia
|
|
86
|
+
key={`teads-media-${pid}-${url}`}
|
|
87
|
+
pid={pid}
|
|
88
|
+
url={url}
|
|
89
|
+
/>
|
|
90
|
+
</ScrollView>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
74
93
|
```
|
package/lib/commonjs/version.js
CHANGED
package/lib/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const packageVersion = "6.0.
|
|
1
|
+
export declare const packageVersion = "6.0.6";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const packageVersion = "6.0.
|
|
1
|
+
export declare const packageVersion = "6.0.6";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teads-react-native",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Easily embed Teads Widgets in your React Native app!",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"scripts": {
|
|
42
42
|
"preinstall": "node -e \"const [major, minor, patch] = process.versions.node.split('.').map(Number); if (major < 20 || (major === 20 && minor < 19)) { console.error('❌ Node 20.19.0+ required'); process.exit(1); }\"",
|
|
43
|
-
"example": "yarn workspace
|
|
43
|
+
"example": "yarn workspace teads-react-native-example",
|
|
44
44
|
"test": "jest",
|
|
45
45
|
"typecheck": "tsc",
|
|
46
46
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = '6.0.
|
|
1
|
+
export const packageVersion = '6.0.6';
|