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/
- Install package
npm install @roborox/react-native-iad -SE
- In XCode, follow the instructions in Step 1 to add the iAd framework
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-apple-ads-attributionand addRNAppleAdsAttribution.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNAppleAdsAttribution.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project
import RNIAp from '@roborox/react-native-iap';
const attributionData = await RNIAp.getAttributionData();With typescript support