Skip to content

roborox/react-native-iad

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published