Integration
Follow the steps below to integrate the Story feature into your app.
iOS
Add below lines to your project target's
Build Phases
->Copy Bundle Resources
section. SelectCreate folder references
when prompted.Code Block Pods/VisilabsIOS/Sources/TargetingAction/Story/Views/timerView/timerView.xib
Android
No additional installation required
Usage
Use the following figure to add the Story property to your application.
Import the
RDStoryView
property.Code Block language js import { RDStoryView } from 'react-native-related-digital'
Add the code below.
actionId
: The value of the actionid parameter in the url where you created the story property in the RMC panel. If you don't send this parameter, it will fetch the last story defined in your account.Code Block language js <RDStoryView actionId={'1'} // opsiyonel onItemClicked={(data) => { console.log('Story data', data) }} style={{ flex: 1 }} />
Ui button | ||||||
---|---|---|---|---|---|---|
|