@sellwild/react-native-sdk 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +55 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # @sellwild/react-native-sdk
2
+
3
+ Sellwild mobile advertising SDK for React Native. Server-side header bidding through Prebid Server — one SDK, sub-200ms auctions, no client-side bidder SDKs.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @sellwild/react-native-sdk react-native-webview
9
+ cd ios && pod install && cd ..
10
+ ```
11
+
12
+ ## Quick Start
13
+
14
+ ```tsx
15
+ import React from 'react';
16
+ import { SafeAreaView } from 'react-native';
17
+ import { SellwildBanner, buildConfig } from '@sellwild/react-native-sdk';
18
+
19
+ const config = buildConfig({
20
+ partnerCode: 'your-partner',
21
+ listingsUrl: 'https://api.sellwild.com/widget/listings?partner=your-partner',
22
+ appBundleId: 'com.yourcompany.yourapp',
23
+ appStoreUrl: 'https://play.google.com/store/apps/details?id=com.yourcompany.yourapp',
24
+ prebidServer: {
25
+ accountId: 'your-account',
26
+ endpoint: 'https://prebid.sellwild.com/openrtb2/auction',
27
+ bidders: ['appnexus', 'rubicon', 'ix', 'openx'],
28
+ timeout: 1500,
29
+ },
30
+ });
31
+
32
+ export default function App() {
33
+ return (
34
+ <SafeAreaView style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
35
+ <SellwildBanner
36
+ config={config}
37
+ size="300x250"
38
+ onImpression={() => console.log('Ad impression')}
39
+ onError={(err) => console.warn('Ad error:', err.message)}
40
+ />
41
+ </SafeAreaView>
42
+ );
43
+ }
44
+ ```
45
+
46
+ ## Components
47
+
48
+ - **`SellwildBanner`** — Display ad (300x250, 320x50, 728x90)
49
+ - **`SellwildWidget`** — Full marketplace widget with listings and ads
50
+ - **`SellwildListingCard`** — Individual listing card component
51
+ - **`useSellwildListings`** — Hook for fetching listings data
52
+
53
+ ## Documentation
54
+
55
+ Full integration guide: [sdk.sellwild.com](https://sdk.sellwild.com/guide/react-native)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellwild/react-native-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Sellwild mobile advertising SDK for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",