@pnlight/sdk-react-native to add PNLight to a React Native app on iOS.
Install
Initialize the SDK
Callinitialize once when your app starts.
Common calls
logEvent sends optional in-app events to PNLight. You can review them in Analytics → App Events, on the Events page, and in customer timelines.
Remote Config
Fetch Remote Config after initialization. Read values with typed getters and fallbacks your app owns.fetchAndActivate waits briefly for AppsFlyer attribution and uses a 15-minute minimum fetch interval. See Remote Config for fetch results, local defaults, and all supported value types.
IDFA after ATT
If PNLight initializes before the App Tracking Transparency prompt completes, callupdateIdfa() after authorization so PNLight receives the granted IDFA.
Remote UI component
UseRemoteUiView to fetch and render a placement. Add an onAction handler so your app can respond to actions from that UI.
Remote UI props
Use Remote UI to learn how placements and actions work.