@roborox/react-native-iad
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

react-native-iad

WARNING: IOS ONLY

This native module can fetch Apple's ads attribution

More info about Apple Search Ads: https://developer.apple.com/documentation/iad/setting_up_apple_search_ads_attribution/

Getting started

Step 1

  1. Install package npm install @roborox/react-native-iad -SE

Step 2

  1. In XCode, follow the instructions in Step 1 to add the iAd framework
  2. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  3. Go to node_modulesreact-native-apple-ads-attribution and add RNAppleAdsAttribution.xcodeproj
  4. In XCode, in the project navigator, select your project. Add libRNAppleAdsAttribution.a to your project's Build PhasesLink Binary With Libraries
  5. Run your project

Usage

import RNIAp from '@roborox/react-native-iap';

const attributionData = await RNIAp.getAttributionData();

With typescript support

More

Package Sidebar

Install

npm i @roborox/react-native-iad

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

14.8 kB

Total Files

12

Last publish

Collaborators

  • roborox-dev