Start with createOptiViewAds, which returns the OptiViewAdsConnector for one player.
Configure the SDK instance; every option is plain data that crosses the bridge unchanged.
Subscribe with OptiViewAdsConnector.addEventListener; payloads are identical to the web SDK's.
Model break schedules, ad layouts, assets, targeting and delivery rules.
Intercept manifest requests and responses, and customize ad requests with asset-parameter macros.
The API reference for the OptiView Ads React Native SDK version 1.0.0-beta.6-custom.1364.
The OptiView Ads SDK for React Native brings the native Android, iOS and tvOS SDKs to a React Native app: a typed JavaScript facade over the native
OptiViewAdsorchestrator, which owns scheduling, ad rendering and IMA. Configuration, sessions and events mirror the web SDK, so an integration reads the same on every platform.This API reference documents the package's functions, connector methods, configuration options, events and data types. Import them from
@dolby-optiview/ads-sdk-react-native; on react-native-web the same names come from the package'swebentry.Getting started
player.nativeHandleforreact-native-theoplayer, or useReactVideoHandle forreact-native-video— and call createOptiViewAds with an OptiViewAdsReactNativeConfig.Browse by topic
react-native-theoplayerorreact-native-videothrough the native player handle.