Skip to main content
Use @pnlight/sdk-react-native for React Native apps that need PNLight on iOS.

Install

Package page: @pnlight/sdk-react-native on npm. React Native SDK version

Initialize the SDK

Call initialize once during app startup.

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.

IDFA after ATT

If PNLight initializes before the App Tracking Transparency prompt completes, call updateIdfa() after authorization so PNLight receives the granted IDFA.

Remote UI component

Use RemoteUiView to fetch and render a placement. Add an onAction handler so your app can respond to actions from the returned UI.

Remote UI props

Use Remote UI to learn how placements and actions work.