Affise React Native SDK
The Affise React Native SDK wraps the native Affise Android and iOS libraries and exposes them to JavaScript/TypeScript.
Package
Section titled “Package”- npm package:
affise-attribution-lib(package.json:2) - Version:
1.7.8(package.json:3) - Repository:
affise/affise-mmp-sdk-react(package.json:45) - License:
MIT(package.json:47) - Keywords:
affise,react-native,ios,android(package.json:39-44)
Peer dependencies
Section titled “Peer dependencies”From package.json:81-84:
react:*react-native:*
The dependencies object is empty (package.json:162); only peer dependencies are required.
Native bridge
Section titled “Native bridge”- iOS Pod:
affise-attribution-native(affise-attribution-native.podspec:7) - iOS native class:
AffiseAttributionNative(ios/AffiseAttributionNative.swift:5-6) - Android namespace:
com.affise.attribution.react(android/build.gradle:41) - Android native module name:
AffiseAttributionNative(android/src/main/java/com/affise/attribution/react/AffiseAttributionNativeModule.kt:77) - JS reference:
NativeModules.AffiseAttributionNative(src/native/NativeBasePlatform.ts:9)
Explore the docs
Section titled “Explore the docs” Requirements Node, React Native, iOS and Android version matrix.
Configuration Install the package, configure native projects and initialize the SDK.
Optional setup Builder settings, callbacks, domain, production flag and module gating.
Events Predefined, custom and buffered events with parameter enums.
Deep linking Custom scheme deeplinks, App Links / Universal Links and deferred deeplinks.
Push tokens Register Firebase and APNs push tokens for uninstall tracking.
Referrer Read referrer URL and individual referrer keys.
Device info Random IDs, providers and first-run detection.
Privacy Tracking toggles and GDPR forget.
Offline mode Pause network activity without losing events.
SKAdNetwork iOS SKAdNetwork registration and postback conversion values.
Ad revenue Send ad revenue via AffiseAdRevenue builder.