Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.09 KB

File metadata and controls

32 lines (21 loc) · 1.09 KB

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