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
- # outbrain-react-native
1
+ # teads-react-native
2
2
 
3
- Easily embed Outbrain SmartFeed Widget in your React Native app!
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, TeadsAdPlacementMedia } from 'teads-react-native';
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
- export default App;
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
  ```
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageVersion = void 0;
7
- const packageVersion = exports.packageVersion = '6.0.5';
7
+ const packageVersion = exports.packageVersion = '6.0.6';
8
8
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
 
3
- export const packageVersion = '6.0.5';
3
+ export const packageVersion = '6.0.6';
4
4
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const packageVersion = "6.0.5";
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.5";
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.5",
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 outbrain-react-native-example",
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.5';
1
+ export const packageVersion = '6.0.6';