1.0.0 • Published 4 years ago

@roborox/react-native-iad v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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