React Native - Story
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.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.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.<RDStoryView actionId={'1'} // opsiyonel onItemClicked={(data) => { console.log('Story data', data) }} style={{ flex: 1 }} />
Copyright 2020 Related Digital